Class: Cucumber::Core::Compiler
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/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.
18 19 20 21 22 23 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/compiler.rb', line 18 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
30 31 32 33 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/compiler.rb', line 30 def done receiver.done self end |
#pickle(pickle) ⇒ Object
25 26 27 28 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/compiler.rb', line 25 def pickle(pickle) test_case = create_test_case(pickle) test_case.describe_to(receiver) end |