T
Tom Counsell
Hello
I was wondering if anyone can help me by explaining what governs the
order of methods returned by object.public_methods( false ) ?
class Test
def a
end
def b
end
def c
end
end
t = Test.new
t.public_methods( false ) # => ["a", "c", "b"]
.... so appears to be neither in the order defined, nor alphabetical and
not random either?
Thanks
Tom
I was wondering if anyone can help me by explaining what governs the
order of methods returned by object.public_methods( false ) ?
class Test
def a
end
def b
end
def c
end
end
t = Test.new
t.public_methods( false ) # => ["a", "c", "b"]
.... so appears to be neither in the order defined, nor alphabetical and
not random either?
Thanks
Tom