Sha256: b58368fd6342e636460574089a2cbf2a033ee326be8f93443e91cfb319e22591
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
=begin rdoc add method methods2 so that it returns lists that are split into two kind of [adds a marker where the inherited methods begin]. =end module Kernel #alias :methods_old :methods def methods2 all = true if all # give some marker designating when the inherited methods start (public_methods(false) << :"inherited methods after this point >>") + (public_methods(true) - public_methods(false)) else public_methods(false) end end end class Object # TODO add to sane [?] def my_methods(_super=false) _methods = (_super) ? self.class.superclass.new.methods : Object.methods (self.methods - _methods).sort end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ri_for-0.6.1 | lib/ri_for/kernel_new_methods_list.rb |
ri_for-0.6.0 | lib/ri_for/kernel_new_methods_list.rb |