Aha! Thank you TIG, who shows how to add your own .rb file into the plugins folder here:
"
If you have a lone .rb file [e.g. you are writing your own Ruby code] then you will need to access your Plugins folder to add it.
It that case use this snippet in the Ruby Console + [enter] to open that folder…