Sort all method from Object : Method Reflection « Reflection « Ruby






Sort all method from Object


puts Object.methods.sort

# => ["<", "<=", "<=>", "==", "===", "=~", ">", ">=",
#     "__id__", "__send__", "allocate", "ancestors", ... ]

 








Related examples in the same category

1.query almost any object within Ruby for the methods that are defined within it
2.Listing Methods Unique to an Object
3.Getting a Reference to a Method
4.Method pointer