class Lucid::AST::StepResult
Attributes
background[R]
exception[R]
file_colon_line[R]
keyword[R]
status[R]
step_match[R]
step_multiline_class[R]
Public Class Methods
new(keyword, step_match, multiline_arg, status, exception, source_indent, background, file_colon_line)
click to toggle source
# File lib/lucid/ast/step_result.rb, line 7 def initialize(keyword, step_match, multiline_arg, status, exception, source_indent, background, file_colon_line) @keyword, @step_match, @multiline_arg, @status, @exception, @source_indent, @background, @file_colon_line = keyword, step_match, multiline_arg, status, exception, source_indent, background, file_colon_line end
Public Instance Methods
accept(visitor)
click to toggle source
# File lib/lucid/ast/step_result.rb, line 11 def accept(visitor) visitor.step_result(self) do visitor.visit_step_name(@keyword, @step_match, @status, @source_indent, @background, @file_colon_line) visitor.visit_multiline_arg(@multiline_arg) if @multiline_arg visitor.visit_exception(@exception, @status) if @exception end end
args()
click to toggle source
# File lib/lucid/ast/step_result.rb, line 19 def args [@keyword, @step_match, @multiline_arg, @status, @exception, @source_indent, @background, @file_colon_line] end
step_arguments()
click to toggle source
# File lib/lucid/ast/step_result.rb, line 31 def step_arguments @step_match.step_arguments end
step_definition()
click to toggle source
# File lib/lucid/ast/step_result.rb, line 27 def step_definition @step_match.step_definition end
step_name()
click to toggle source
# File lib/lucid/ast/step_result.rb, line 23 def step_name @step_match.name end