Class: Cucumber::Core::Ast::ExpandedOutlineStep

Inherits:
Step
  • Object
show all
Defined in:
lib/cucumber/core/ast/step.rb

Instance Attribute Summary

Attributes inherited from Step

#comments, #exception, #keyword, #language, #multiline_arg, #name

Instance Method Summary collapse

Methods inherited from Step

#actual_keyword, #inspect, #to_sexp

Methods included from DescribesItself

#describe_to

Methods included from HasLocation

#attributes, #comments, #file, #file_colon_line, #line, #location, #multiline_arg, #tags

Constructor Details

#initialize(outline_step, language, location, comments, keyword, name, multiline_arg) ⇒ ExpandedOutlineStep

Returns a new instance of ExpandedOutlineStep.



55
56
57
# File 'lib/cucumber/core/ast/step.rb', line 55

def initialize(outline_step, language, location, comments, keyword, name, multiline_arg)
  @outline_step, @language, @location, @comments, @keyword, @name, @multiline_arg = outline_step, language, location, comments, keyword, name, multiline_arg
end

Instance Method Details

#all_locationsObject



59
60
61
# File 'lib/cucumber/core/ast/step.rb', line 59

def all_locations
  @outline_step.all_locations
end

#backtrace_lineObject



65
66
67
68
# File 'lib/cucumber/core/ast/step.rb', line 65

def backtrace_line
  "#{step_backtrace_line}\n" +
  "#{@outline_step.location}:in `#{@outline_step.keyword}#{@outline_step.name}'"
end

#step_backtrace_lineObject



63
# File 'lib/cucumber/core/ast/step.rb', line 63

alias :step_backtrace_line :backtrace_line