query almost any object within Ruby for the methods that are defined within it : Method Reflection « Reflection « Ruby






query almost any object within Ruby for the methods that are defined within it


a = "This is a test"
puts a.methods.join(' ')

 








Related examples in the same category

1.Sort all method from Object
2.Listing Methods Unique to an Object
3.Getting a Reference to a Method
4.Method pointer