Class: Cucumber::Core::Compiler::BackgroundCompiler
- Inherits:
-
Object
- Object
- Cucumber::Core::Compiler::BackgroundCompiler
- Defined in:
- lib/cucumber/core/compiler.rb
Instance Method Summary collapse
-
#initialize(source, receiver) ⇒ BackgroundCompiler
constructor
A new instance of BackgroundCompiler.
- #step(step) ⇒ Object
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 |