Module: Kernel
- Defined in:
- lib/method_describer/kernel_new_methods_list.rb
Overview
add method methods2 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
#methods2(all = true) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/method_describer/kernel_new_methods_list.rb', line 6 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 |