Class: Cucumber::Core::Gherkin::AstBuilder::ExamplesTableBuilder
- Defined in:
- lib/cucumber/core/gherkin/ast_builder.rb
Defined Under Namespace
Classes: ExampleRowBuilder, HeaderBuilder, NullHeaderBuilder
Instance Attribute Summary collapse
-
#example_rows_builders ⇒ Object
readonly
Returns the value of attribute example_rows_builders.
-
#header_builder ⇒ Object
readonly
Returns the value of attribute header_builder.
Instance Method Summary collapse
-
#initialize ⇒ ExamplesTableBuilder
constructor
A new instance of ExamplesTableBuilder.
- #result(language) ⇒ Object
Methods inherited from Builder
Constructor Details
#initialize ⇒ ExamplesTableBuilder
Returns a new instance of ExamplesTableBuilder.
307 308 309 310 311 |
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 307 def initialize(*) super @header_builder = attributes[:table_header] ? HeaderBuilder.new(file, attributes[:table_header]) : NullHeaderBuilder.new @example_rows_builders = attributes[:table_body] ? attributes[:table_body].map { |row_attributes| ExampleRowBuilder.new(file, row_attributes) } : [] end |
Instance Attribute Details
#example_rows_builders ⇒ Object (readonly)
Returns the value of attribute example_rows_builders.
305 306 307 |
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 305 def example_rows_builders @example_rows_builders end |
#header_builder ⇒ Object (readonly)
Returns the value of attribute header_builder.
305 306 307 |
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 305 def header_builder @header_builder end |