module Utils::IRB::Shell

def irb_methods(obj = self)

Returns:
  • (Array) - an array of wrapped method objects for display in IRB

Parameters:
  • obj (Object) -- the object whose class methods are to be examined
def irb_methods(obj = self)
  methods = obj.class.ancestors[1..-1].inject(obj.methods) do |all, a|
    all -= a.instance_methods
  end
  irb_wrap_methods obj, methods
end