Class: Cucumber::Core::Ast::ExpandedOutlineStep
- 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
- #all_locations ⇒ Object
- #backtrace_line ⇒ Object
-
#initialize(outline_step, language, location, comments, keyword, name, multiline_arg) ⇒ ExpandedOutlineStep
constructor
A new instance of ExpandedOutlineStep.
- #step_backtrace_line ⇒ Object
Methods inherited from Step
#actual_keyword, #inspect, #to_sexp
Methods included from DescribesItself
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_locations ⇒ Object
59 60 61 |
# File 'lib/cucumber/core/ast/step.rb', line 59 def all_locations @outline_step.all_locations end |
#backtrace_line ⇒ Object
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_line ⇒ Object
63 |
# File 'lib/cucumber/core/ast/step.rb', line 63 alias :step_backtrace_line :backtrace_line |