Sha256: 00ac862d76a586bd382a606c241cf89bd01c270fe91e902bfd58051b3143d72f
Contents?: true
Size: 329 Bytes
Versions: 2
Compression:
Stored size: 329 Bytes
Contents
class Class # Returns list of public instance methods of current class excluding methods # inherited from the <tt>Object</tt>. def declared_methods klass, result = self, [] while not klass == Object result += klass.instance_methods(false) klass = klass.superclass end result end end # Class
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mustang-0.1.1 | lib/core_ext/class.rb |
mustang-0.1.0 | lib/core_ext/class.rb |