Class: Cucumber::Core::Gherkin::Writer::Feature

Inherits:
Object
  • Object
show all
Includes:
HasDescription, HasElements, HasOptionsInitializer
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/gherkin/writer.rb

Instance Method Summary collapse

Methods included from HasOptionsInitializer

included, #initialize

Methods included from HasElements

included

Methods included from AcceptsComments

#comment, #comment_lines, #slurp_comments

Instance Method Details

#build(source = []) ⇒ Object



53
54
55
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/gherkin/writer.rb', line 53

def build(source = [])
  elements.inject(source + statements) { |acc, el| el.build(acc) + [NEW_LINE] }
end