Getting prebuilt materials on a object

Please code Ruby code and error text correctly in the forum:

Also your code may be more robust if you add the methods I show here …
How to add all SU materials in our list? - #23 by DanRathbun