I have feeling, that if one defines a method
def test
puts 'Hi'
end
then there is a class to which this method belongs to (i.e. Unknown#test
). So one probably has a possibility to list all methods defined "outside" of other classes. Or there is another way to do such listing?