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