lib/docrb/lib/docrb/resolvable.rb
def resolve_method(name)
      if (local = try?(:defs)&.find(&by_name(name)))
        return local
      end

      if (local = try?(:sdefs)&.find(&by_name(name)))
        return local
      end

      # Inherited?
      if (inherited = try?(:inherits)&.try?(:resolve_method, name, type))
        return inherited
      end

      nil
    end
# Attempts to resolve a method with a provided name in the container's
# context. This method attempts to match for instance methods, class
# methods, and finally by recursively calling this method on the inherited
# members, if any.
#
# name - Name of the method to be resolved.
#
# Returns a method structure, or nil, in case none is found.
Attempts to resolve a method with a provided name in the container's
context. This method attempts to match for instance methods, class
methods, and finally by recursively calling this method on the inherited
members, if any.

Name of the method to be resolved.

Returns a method structure, or nil, in case none is found.
Attempts to resolve a method with a provided name in the container ' s context . This method attempts to match for instance methods class methods and finally by recursively calling this method on the inherited members if any . Name of the method to be resolved . Returns a method structure or nil in case none is found .
def resolve_method(name)
      if (local = try?(:defs)&.find(&by_name(name)))
        return local
      end
      if (local = try?(:sdefs)&.find(&by_name(name)))
        return local
      end
      if (inherited = try?(:inherits)&.try?(:resolve_method, name, type))
        return inherited
      end
      nil
    end
def resolve_method ( name ) if ( local = try? ( :defs ) &. find ( & by_name ( name ) ) ) return local end if ( local = try? ( :sdefs ) &. find ( & by_name ( name ) ) ) return local end if ( inherited = try? ( :inherits ) &. try? ( :resolve_method , name , type ) ) return inherited end nil end
Attempts to resolve a method with a provided name in the container's
context.
Attempts to resolve a method with a provided name in the container ' s context .
# Inherited?
name