# File lib/pry/commands/find_method.rb, line 33 def options(opti) opti.on :n, :name, "Search for a method by name" opti.on :c, :content, "Search for a method based on content in Regex form" end
# File lib/pry/commands/find_method.rb, line 38 def process return if args.size < 1 klass = search_class matches = if opts.content? content_search(klass) else name_search(klass) end show_search_results(matches) end
# File lib/pry/commands/find_method.rb, line 29 def setup require 'ruby18_source_location' if mri_18? end