I am learning Ruby Singletons and i found some ways to define and get list of Class and Object singleton methods.
Ways to define
Object singleton methods
instance_eval
class A end a = A.new a.instance_eval do def v "asd" end end a.singleton_methods => [:z, :v]