When you start a Ruby program, the Ruby interpreter creates a top-level object which is called main.
The top-level execution environment is set to the context of this main object.

to_s                    # => "main"

puts to_s               # main
puts self               # main
puts self.class         # Object