class Cucumber::Core::Gherkin::AstBuilder::StepBuilder
def argument_builder(attributes)
def argument_builder(attributes) attributes[:type] == :DataTable ? DataTableBuilder.new(file, attributes) : DocStringBuilder.new(file, attributes) end
def children
def children return [] unless multiline_argument_builder [multiline_argument_builder] end
def initialize(*)
def initialize(*) super @multiline_argument_builder = attributes[:argument] ? argument_builder(attributes[:argument]) : nil end
def multiline_argument
def multiline_argument return Ast::EmptyMultilineArgument.new unless multiline_argument_builder multiline_argument_builder.result end
def result(language)
def result(language) Ast::Step.new( language, location, comments, keyword, attributes[:text], multiline_argument ) end