module Utils::IRB::Shell

def irb_wrap_methods(obj = self, methods = methods(), modul = false)

Returns:
  • (Array) - an array of wrapped method objects sorted in ascending order

Parameters:
  • modul (TrueClass, FalseClass) -- flag indicating if the methods are module methods
  • methods (Array) -- the array of method names to wrap
  • obj (Object) -- the object whose methods are being wrapped
def irb_wrap_methods(obj = self, methods = methods(), modul = false)
  methods.map do |name|
    MethodWrapper.new(obj, name, modul) rescue nil
  end.compact.sort!
end