Mega Code Archive

 
Categories / Ruby / Reflection
 

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

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