Ah!
So if I learn a bit of Ruby I can use that in Sonic-pi?
Is the Sonic-pi language a superset of Ruby or is it a subset with specific extensions?
Or … ?
Closer to the latter. Sonic Pi is a DSL (Domain Specific Language) implemented with Ruby. While this means that there is some crossover, Sonic Pi is not Ruby - and total compatibility is not guaranteed or intended.
It’s quite possible to use some plain Ruby syntax currently, but such use is not officially supported and may or may not work in the future as Sonic Pi evolves. (There is always the possibility that some day the Sonic Pi DSL may be reimplemented in another base language entirely for example).