module Cucumber::Core::Gherkin::Writer::HasElements
Public Class Methods
Source
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 73 def self.included(base) base.extend HasElementBuilders end
Public Instance Methods
Source
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 77 def build(source = []) elements.inject(source + statements) { |acc, el| el.build(acc) } end
Private Instance Methods
Source
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 83 def elements @elements ||= [] end