Class: Cucumber::Core::Compiler
- Inherits:
-
Object
- Object
- Cucumber::Core::Compiler
- Defined in:
- lib/cucumber/core/compiler.rb
Overview
Compiles the Pickles into test cases
Instance Method Summary collapse
- #done ⇒ Object
-
#initialize(receiver, gherkin_query, event_bus = nil) ⇒ Compiler
constructor
A new instance of Compiler.
- #pickle(pickle) ⇒ Object
Constructor Details
#initialize(receiver, gherkin_query, event_bus = nil) ⇒ Compiler
Returns a new instance of Compiler.
19 20 21 22 23 24 |
# File 'lib/cucumber/core/compiler.rb', line 19 def initialize(receiver, gherkin_query, event_bus = nil) @receiver = receiver @id_generator = Cucumber::Messages::IdGenerator::UUID.new @gherkin_query = gherkin_query @event_bus = event_bus end |
Instance Method Details
#done ⇒ Object
31 32 33 34 |
# File 'lib/cucumber/core/compiler.rb', line 31 def done receiver.done self end |
#pickle(pickle) ⇒ Object
26 27 28 29 |
# File 'lib/cucumber/core/compiler.rb', line 26 def pickle(pickle) test_case = create_test_case(pickle) test_case.describe_to(receiver) end |