Class: Cucumber::NoStepMatch
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.
105 106 107 108 |
# File 'lib/cucumber/step_match.rb', line 105 def initialize(step, name) @step = step @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
103 104 105 |
# File 'lib/cucumber/step_match.rb', line 103 def name @name end |
#step_definition ⇒ Object (readonly)
Returns the value of attribute step_definition.
103 104 105 |
# File 'lib/cucumber/step_match.rb', line 103 def step_definition @step_definition end |
Instance Method Details
#activate(test_step) ⇒ Object
136 137 138 139 |
# File 'lib/cucumber/step_match.rb', line 136 def activate(test_step) # noop return test_step end |
#backtrace_line ⇒ Object
124 125 126 |
# File 'lib/cucumber/step_match.rb', line 124 def backtrace_line @step.backtrace_line end |
#file_colon_line ⇒ Object
119 120 121 122 |
# File 'lib/cucumber/step_match.rb', line 119 def file_colon_line raise "No file:line for #{@step}" unless @step.file_colon_line @step.file_colon_line end |
#format_args(*args) ⇒ Object
110 111 112 |
# File 'lib/cucumber/step_match.rb', line 110 def format_args(*args) @name end |
#location ⇒ Object
114 115 116 117 |
# File 'lib/cucumber/step_match.rb', line 114 def location raise "No location for #{@step}" unless @step.location @step.location end |
#step_arguments ⇒ Object
132 133 134 |
# File 'lib/cucumber/step_match.rb', line 132 def step_arguments [] end |
#text_length ⇒ Object
128 129 130 |
# File 'lib/cucumber/step_match.rb', line 128 def text_length @step.text_length end |