Class: Cucumber::NoStepMatch
- Inherits:
-
Object
- Object
- Cucumber::NoStepMatch
- Defined in:
- lib/cucumber/step_match.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#step_definition ⇒ Object
readonly
Returns the value of attribute step_definition.
Instance Method Summary collapse
- #activate(test_step) ⇒ Object
- #backtrace_line ⇒ Object
- #file_colon_line ⇒ Object
- #format_args(*_args) ⇒ Object
-
#initialize(step, name) ⇒ NoStepMatch
constructor
A new instance of NoStepMatch.
- #location ⇒ Object
- #step_arguments ⇒ Object
- #text_length ⇒ Object
Constructor Details
#initialize(step, name) ⇒ NoStepMatch
Returns a new instance of NoStepMatch.
107 108 109 110 |
# File 'lib/cucumber/step_match.rb', line 107 def initialize(step, name) @step = step @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
105 106 107 |
# File 'lib/cucumber/step_match.rb', line 105 def name @name end |
#step_definition ⇒ Object (readonly)
Returns the value of attribute step_definition.
105 106 107 |
# File 'lib/cucumber/step_match.rb', line 105 def step_definition @step_definition end |
Instance Method Details
#activate(test_step) ⇒ Object
138 139 140 141 |
# File 'lib/cucumber/step_match.rb', line 138 def activate(test_step) # noop return test_step end |
#backtrace_line ⇒ Object
126 127 128 |
# File 'lib/cucumber/step_match.rb', line 126 def backtrace_line @step.backtrace_line end |
#file_colon_line ⇒ Object
121 122 123 124 |
# File 'lib/cucumber/step_match.rb', line 121 def file_colon_line raise "No file:line for #{@step}" unless @step.file_colon_line @step.file_colon_line end |
#format_args(*_args) ⇒ Object
112 113 114 |
# File 'lib/cucumber/step_match.rb', line 112 def format_args(*_args) @name end |
#location ⇒ Object
116 117 118 119 |
# File 'lib/cucumber/step_match.rb', line 116 def location raise "No location for #{@step}" unless @step.location @step.location end |
#step_arguments ⇒ Object
134 135 136 |
# File 'lib/cucumber/step_match.rb', line 134 def step_arguments [] end |
#text_length ⇒ Object
130 131 132 |
# File 'lib/cucumber/step_match.rb', line 130 def text_length @step.text_length end |