Class: Cucumber::Filters::Quit
- Inherits:
-
Object
- Object
- Cucumber::Filters::Quit
- Defined in:
- lib/cucumber/filters/quit.rb
Instance Method Summary collapse
- #done ⇒ Object
-
#initialize(receiver = nil) ⇒ Quit
constructor
A new instance of Quit.
- #test_case(test_case) ⇒ Object
- #with_receiver(receiver) ⇒ Object
Constructor Details
#initialize(receiver = nil) ⇒ Quit
Returns a new instance of Quit.
6 7 8 |
# File 'lib/cucumber/filters/quit.rb', line 6 def initialize(receiver = nil) @receiver = receiver end |
Instance Method Details
#done ⇒ Object
15 16 17 18 |
# File 'lib/cucumber/filters/quit.rb', line 15 def done @receiver.done self end |
#test_case(test_case) ⇒ Object
10 11 12 13 |
# File 'lib/cucumber/filters/quit.rb', line 10 def test_case(test_case) test_case.describe_to @receiver unless Cucumber.wants_to_quit self end |
#with_receiver(receiver) ⇒ Object
20 21 22 |
# File 'lib/cucumber/filters/quit.rb', line 20 def with_receiver(receiver) self.class.new(receiver) end |