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



6
7
8
# File 'lib/cucumber/filters/quit.rb', line 6

def initialize(receiver = nil)
  @receiver = receiver
end

Instance Method Details

#doneObject



17
18
19
20
# File 'lib/cucumber/filters/quit.rb', line 17

def done
  @receiver.done
  self
end

#test_case(test_case) ⇒ Object



10
11
12
13
14
15
# File 'lib/cucumber/filters/quit.rb', line 10

def test_case(test_case)
  unless Cucumber.wants_to_quit
    test_case.describe_to @receiver
  end
  self
end

#with_receiver(receiver) ⇒ Object



22
23
24
# File 'lib/cucumber/filters/quit.rb', line 22

def with_receiver(receiver)
  self.class.new(receiver)
end