Class: Cucumber::Core::Gherkin::AstBuilder::ExamplesTableBuilder
- Defined in:
- lib/cucumber/core/gherkin/ast_builder.rb
Defined Under Namespace
Classes: ExampleRowBuilder, HeaderBuilder
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.
293 294 295 296 297 298 299 |
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 293 def initialize(*) super @header_builder = HeaderBuilder.new(file, attributes[:table_header]) @example_rows_builders = attributes[:table_body].map do |row_attributes| ExampleRowBuilder.new(file, row_attributes) end end |
Instance Attribute Details
#example_rows_builders ⇒ Object (readonly)
Returns the value of attribute example_rows_builders.
291 292 293 |
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 291 def example_rows_builders @example_rows_builders end |
#header_builder ⇒ Object (readonly)
Returns the value of attribute header_builder.
291 292 293 |
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 291 def header_builder @header_builder end |