--00151747c452ea064104a310f828
Content-Type: text/plain; charset=ISO-8859-1

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
il

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

self.class.instance_methods.include? :hello
alse

Can anyone help explain that?

Thanks in advance!

Brian

--00151747c452ea064104a310f828--