class Cucumber::Core::Compiler::FeatureCompiler
@private
Attributes
receiver[R]
Public Class Methods
new(receiver)
click to toggle source
# File lib/cucumber/core/compiler.rb, line 68 def initialize(receiver) @receiver = receiver end
Public Instance Methods
background(background, &descend)
click to toggle source
# File lib/cucumber/core/compiler.rb, line 78 def background(background, &descend) source = [@feature, background] compiler = BackgroundCompiler.new(source, receiver) descend.call(compiler) self end
feature(feature, &descend)
click to toggle source
# File lib/cucumber/core/compiler.rb, line 72 def feature(feature, &descend) @feature = feature descend.call(self) self end
scenario(scenario, &descend)
click to toggle source
# File lib/cucumber/core/compiler.rb, line 85 def scenario(scenario, &descend) source = [@feature, scenario] scenario_compiler = ScenarioCompiler.new(source, receiver) descend.call(scenario_compiler) receiver.on_test_case(source) self end
scenario_outline(scenario_outline, &descend)
click to toggle source
# File lib/cucumber/core/compiler.rb, line 93 def scenario_outline(scenario_outline, &descend) source = [@feature, scenario_outline] compiler = ScenarioOutlineCompiler.new(source, receiver) descend.call(compiler) self end