Module: Kernel

Defined in:
lib/ri_for/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

alias :methods_old :methods



7
8
9
10
11
12
13
14
# File 'lib/ri_for/kernel_new_methods_list.rb', line 7

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