Module: Cucumber::Core::Gherkin::Writer::HasElements
- Includes:
- AcceptsComments
- Included in:
- Background, Feature, Scenario, ScenarioOutline, Step
- Defined in:
- lib/cucumber/core/gherkin/writer/helpers.rb
Defined Under Namespace
Modules: HasElementBuilders
Instance Method Summary collapse
Methods included from AcceptsComments
#comment, #comment_lines, #slurp_comments
Instance Method Details
#build(source = []) ⇒ Object
76 77 78 |
# File 'lib/cucumber/core/gherkin/writer/helpers.rb', line 76 def build(source = []) elements.inject(source + statements) { |acc, el| el.build(acc) } end |