Hello,

I have some puzzles, when I start irb,

puts self
=> main
puts self.class
=> Object

After that, if I write the following method,

def hello; end
=>nil

then where is the method "hello" defined? within Object? but

self.class.instance_methods.include? :hello
=>false

Can anyone help explain that?

Thanks in advance!

Brian