Class: Cucumber::Core::Compiler
- Inherits:
-
Object
- Object
- Cucumber::Core::Compiler
- Defined in:
- lib/cucumber/core/compiler.rb
Overview
Compiles the AST into test cases
Instance Method Summary collapse
- #done ⇒ Object
- #feature(feature) ⇒ Object
-
#initialize(receiver) ⇒ Compiler
constructor
A new instance of Compiler.
Constructor Details
#initialize(receiver) ⇒ Compiler
Returns a new instance of Compiler.
13 14 15 |
# File 'lib/cucumber/core/compiler.rb', line 13 def initialize(receiver) @receiver = receiver end |
Instance Method Details
#done ⇒ Object
23 24 25 26 |
# File 'lib/cucumber/core/compiler.rb', line 23 def done receiver.done self end |
#feature(feature) ⇒ Object
17 18 19 20 21 |
# File 'lib/cucumber/core/compiler.rb', line 17 def feature(feature) compiler = FeatureCompiler.new(TestCaseBuilder.new(receiver)) feature.describe_to(compiler) self end |