Class: Cucumber::Filters::Quit

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/filters/quit.rb

Instance Method Summary collapse

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

#doneObject



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