Class: MethodMatch::Pry
- Inherits:
-
Object
- Object
- MethodMatch::Pry
- Defined in:
- lib/method_match/pry.rb
Class Method Summary collapse
Class Method Details
.setup ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/method_match/pry.rb', line 3 def self.setup require 'pry' ::Pry::CommandSet.new do create_command "rspec_method", "runs " do group "Testing" def process(*args) CommandRunner.new( Matcher.new(args[0], Integer(args[1])) ).run_command end end end.tap { |cmd| ::Pry::Commands.import cmd } end |