Sha256: 5397adfa37a392d73eda4b8c9289baa047f56a27c905b857b7579bcf7ece7d78
Contents?: true
Size: 350 Bytes
Versions: 3
Compression:
Stored size: 350 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.map { |m| m.to_sym } end end # Class
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mustang-0.2.2 | lib/mustang/core_ext/class.rb |
mustang-0.2.1 | lib/mustang/core_ext/class.rb |
mustang-0.2.0 | lib/mustang/core_ext/class.rb |