If Ruby is really an Object Orientated language, you may think it odd that we can enter ‘free floating’ methods. In fact, it turns out that when you run a program, Ruby creates a main object and any code that appears inside a code unit is, in spite of appearances, not ‘free floating’ at all; it is, in fact, running inside the main object. You can easily verify this. Create a new source file, add the code below then run it to view the output: