Newbie questions on functions in Sonic Pi

Are functions such as Play, Sample, Synth etc methods of some hiddle classes or objects? If so, what are the objects? I am trying to understand the design of the Sonic Pi from a programming language point of view thinking that would be beneficial for me to learn Sonic Pi since I am familiar with some other OPP language and Sonic PI is based on Ruby.