class Pry::Method

def from_obj(obj, name, target = TOPLEVEL_BINDING)

Returns:
  • (Pry::Method, nil) -

Parameters:
  • target (Binding) -- The binding where the method is looked up.
  • name (String) --
  • obj (Object) --
def from_obj(obj, name, target = TOPLEVEL_BINDING)
  new(lookup_method_via_binding(obj, name, :method, target))
rescue StandardError
  nil
end