def nil.foo puts "boo"endnil.foo # boo class << nil puts "wtf is self: #{self.inspect}" def boo puts 'inside nil\'s eigenclass' endendnil.boo