# File lib/pry/default_commands/find_method.rb, line 35
        def process
          return if args.size < 1
          pattern = ::Regexp.new args[0]
          if args[1]
            klass = target.eval(args[1])
            if !klass.is_a?(Module)
              klass = klass.class
            end
          else
            klass = (target_self.is_a?(Module)) ? target_self : target_self.class
          end

          matches = if opts.content?
                      content_search(pattern, klass)
                    else
                      name_search(pattern, klass)
                    end

          if matches.empty?
            output.puts text.bold("No Methods Matched")
          else
            print_matches(matches, pattern)
          end

        end