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.
108 109 110 111 |
# File 'lib/cucumber/step_match.rb', line 108 def initialize(step, name) @step = step @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
106 107 108 |
# File 'lib/cucumber/step_match.rb', line 106 def name @name end |
#step_definition ⇒ Object (readonly)
Returns the value of attribute step_definition.
106 107 108 |
# File 'lib/cucumber/step_match.rb', line 106 def step_definition @step_definition end |
Instance Method Details
#activate(test_step) ⇒ Object
139 140 141 142 |
# File 'lib/cucumber/step_match.rb', line 139 def activate(test_step) # noop test_step end |
#backtrace_line ⇒ Object
127 128 129 |
# File 'lib/cucumber/step_match.rb', line 127 def backtrace_line @step.backtrace_line end |
#file_colon_line ⇒ Object
123 124 125 |
# File 'lib/cucumber/step_match.rb', line 123 def file_colon_line location.to_s end |
#format_args(*_args) ⇒ Object
113 114 115 |
# File 'lib/cucumber/step_match.rb', line 113 def format_args(*_args) @name end |
#location ⇒ Object
117 118 119 120 121 |
# File 'lib/cucumber/step_match.rb', line 117 def location raise "No location for #{@step}" unless @step.location @step.location end |
#step_arguments ⇒ Object
135 136 137 |
# File 'lib/cucumber/step_match.rb', line 135 def step_arguments [] end |
#text_length ⇒ Object
131 132 133 |
# File 'lib/cucumber/step_match.rb', line 131 def text_length @step.text.length end |