Class: Cucumber::Core::Gherkin::AstBuilder::StepBuilder
- Defined in:
- lib/cucumber/core/gherkin/ast_builder.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#multiline_argument_builder ⇒ Object
readonly
Returns the value of attribute multiline_argument_builder.
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize ⇒ StepBuilder
constructor
A new instance of StepBuilder.
- #multiline_argument ⇒ Object
- #result(language) ⇒ Object
Methods inherited from Builder
Constructor Details
#initialize ⇒ StepBuilder
Returns a new instance of StepBuilder.
209 210 211 212 |
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 209 def initialize(*) super @multiline_argument_builder = attributes[:argument] ? argument_builder(attributes[:argument]) : nil end |
Instance Attribute Details
#multiline_argument_builder ⇒ Object (readonly)
Returns the value of attribute multiline_argument_builder.
207 208 209 |
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 207 def multiline_argument_builder @multiline_argument_builder end |
Instance Method Details
#children ⇒ Object
230 231 232 233 |
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 230 def children return [] unless multiline_argument_builder [multiline_argument_builder] end |
#multiline_argument ⇒ Object
225 226 227 228 |
# File 'lib/cucumber/core/gherkin/ast_builder.rb', line 225 def multiline_argument return Ast::EmptyMultilineArgument.new unless multiline_argument_builder multiline_argument_builder.result end |