Mega Code Archive

 
Categories / Ruby / Reflection
 

Sort all method from Object

puts Object.methods.sort # => ["<", "<=", "<=>", "==", "===", "=~", ">", ">=", #     "__id__", "__send__", "allocate", "ancestors", ... ]