Class: Gherkin::Pickles::Compiler
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/pickles/compiler.rb
Instance Method Summary collapse
- #compile(gherkin_document, source) ⇒ Object
-
#initialize(id_generator) ⇒ Compiler
constructor
A new instance of Compiler.
Constructor Details
#initialize(id_generator) ⇒ Compiler
Returns a new instance of Compiler.
4 5 6 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/pickles/compiler.rb', line 4 def initialize(id_generator) @id_generator = id_generator end |
Instance Method Details
#compile(gherkin_document, source) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/pickles/compiler.rb', line 8 def compile(gherkin_document, source) pickles = [] return pickles unless gherkin_document.feature feature = gherkin_document.feature language = feature.language = feature. compile_feature(pickles, language, , feature, source) pickles end |