class Utils::IRB::Shell::MethodWrapper
def <=>(other)
-
(Integer)
- -1 if this object's description is less than the other's,
Parameters:
-
other
(Object
) -- the other object to compare against
def <=>(other) @description <=> other.description end
def arity
-
(Integer)
- the number of required parameters for the method
def arity method.arity end
def initialize(obj, name, modul)
-
modul
(TrueClass, FalseClass
) -- flag indicating whether to retrieve an instance method -
name
(String
) -- the name of the method to retrieve -
obj
(Object
) -- the object from which to retrieve the method
def initialize(obj, name, modul) super(name) @method = modul ? obj.instance_method(name) : obj.method(name) @description = @method.description(style: :namespace) end
def owner
-
(Object, nil)
- the owner of the method or nil if not applicable
def owner method.respond_to?(:owner) ? method.owner : nil end
def source_location
-
(Array
- an array containing the filename and line number)
def source_location method.source_location end