Module: Kernel
- Defined in:
- lib/method_describer/kernel_new_methods_list.rb
Overview
Supplement [monkey patch] Kernel#methods so that it returns lists that are split into two kind of [adds a marker where the inherited methods begin].
Instance Method Summary collapse
Instance Method Details
#methods(all = true) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/method_describer/kernel_new_methods_list.rb', line 6 def methods 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 |
#methods_old ⇒ Object
5 |
# File 'lib/method_describer/kernel_new_methods_list.rb', line 5 alias :methods_old :methods |