Method: Module#my_methods

Defined in:
lib/unextendable/module.rb

#my_methods(include_private = true) ⇒ Object



3
4
5
6
7
# File 'lib/unextendable/module.rb', line 3

def my_methods(include_private = true)
  public_instance_methods.tap do |methods|
    return methods + private_instance_methods + protected_instance_methods if include_private
  end
end