lib/pry-doc/pry_ext/method_info.rb
def cache(meth)
        file, _ = meth.source_location

        # Eval methods can't be cached.
        return if file =~ /(\(.*\))|<.*>/

        # No need to cache already cached methods.
        return if registry_lookup(meth)

        unless file
          parse_and_cache_if_gem_cext(meth)
          return
        end

        log.enter_level(Logger::FATAL) do
          YARD.parse(file)
        end
      end
##
# Caches the file that holds the method.
#
# Cannot cache C stdlib and eval methods.
#
# @param [Method, UnboundMethod] meth The method object.
Caches the file that holds the method.
Cannot cache C stdlib and eval methods.
Caches the file that holds the method . Cannot cache C stdlib and eval methods .
def cache(meth)
        file, _ = meth.source_location
        return if file =~ /(\(.*\))|<.*>/
        return if registry_lookup(meth)
        unless file
          parse_and_cache_if_gem_cext(meth)
          return
        end
        log.enter_level(Logger::FATAL) do
          YARD.parse(file)
        end
      end
def cache ( meth ) file , _ = meth . source_location return if file =~ / ( \( .* \) )|<.*> / return if registry_lookup ( meth ) unless file parse_and_cache_if_gem_cext ( meth ) return end log . enter_level ( Logger :: FATAL ) do YARD . parse ( file ) end end
Caches the file that holds the method.
Caches the file that holds the method .
# Eval methods can't be cached. # No need to cache already cached methods.
meth
meth The method object.
meth The method object .