lib/pry-doc/pry_ext/method_info.rb
##
# Attempts to find the C source files if method belongs to a gem and use
# YARD to parse and cache the source files for display.
#
# @param [Method, UnboundMethod] meth The method object
Attempts to find the C source files if method belongs to a gem and use
YARD to parse and cache the source files for display.
Attempts to find the C source files if method belongs to a gem and use YARD to parse and cache the source files for display .
def parse_and_cache_if_gem_cext(meth)
        return unless (gem_dir = find_gem_dir(meth))
        path = "#{gem_dir}/**/*.c"
        return if Dir.glob(path).none?
        puts "Scanning and caching *.c files..."
        YARD.parse(path)
      end
def parse_and_cache_if_gem_cext ( meth ) return unless ( gem_dir = find_gem_dir ( meth ) ) path = "#{gem_dir}/**/*.c" return if Dir . glob ( path ) . none? puts "Scanning and caching *.c files..." YARD . parse ( path ) end
Attempts to find the C source files if method belongs to a gem and use
YARD to parse and cache the source files for display.
Attempts to find the C source files if method belongs to a gem and use YARD to parse and cache the source files for display .
meth
meth The method object
meth The method object