Class: Cucumber::Core::Gherkin::Writer::Feature
- Inherits:
-
Object
- Object
- Cucumber::Core::Gherkin::Writer::Feature
- Includes:
- HasDescription, HasElements, HasOptionsInitializer
- Defined in:
- lib/cucumber/core/gherkin/writer/feature.rb
Constant Summary collapse
- NEW_LINE =
''
Instance Method Summary collapse
Methods included from HasOptionsInitializer
Methods included from HasElements
Methods included from AcceptsComments
#comment, #comment_lines, #slurp_comments
Instance Method Details
#build(source = []) ⇒ Object
21 22 23 |
# File 'lib/cucumber/core/gherkin/writer/feature.rb', line 21 def build(source = []) elements.inject(source + statements) { |acc, el| el.build(acc) + [NEW_LINE] } end |