Class: Cucumber::Core::Compiler::BackgroundCompiler

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/core/compiler.rb

Instance Method Summary collapse

Constructor Details

#initialize(source, receiver) ⇒ BackgroundCompiler

Returns a new instance of BackgroundCompiler.



163
164
165
166
# File 'lib/cucumber/core/compiler.rb', line 163

def initialize(source, receiver)
  @source   = source
  @receiver = receiver
end

Instance Method Details

#step(step) ⇒ Object



168
169
170
171
# File 'lib/cucumber/core/compiler.rb', line 168

def step(step)
  receiver.on_background_step(source + [step])
  self
end