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
- #backtrace_line ⇒ Object
- #file_colon_line ⇒ Object
- #format_args(format) ⇒ Object
-
#initialize(step, name) ⇒ NoStepMatch
constructor
A new instance of NoStepMatch.
- #step_arguments ⇒ Object
- #text_length ⇒ Object
Constructor Details
#initialize(step, name) ⇒ NoStepMatch
Returns a new instance of NoStepMatch.
89 90 91 92 |
# File 'lib/cucumber/step_match.rb', line 89 def initialize(step, name) @step = step @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
87 88 89 |
# File 'lib/cucumber/step_match.rb', line 87 def name @name end |
#step_definition ⇒ Object (readonly)
Returns the value of attribute step_definition.
87 88 89 |
# File 'lib/cucumber/step_match.rb', line 87 def step_definition @step_definition end |
Instance Method Details
#backtrace_line ⇒ Object
103 104 105 |
# File 'lib/cucumber/step_match.rb', line 103 def backtrace_line @step.backtrace_line end |
#file_colon_line ⇒ Object
98 99 100 101 |
# File 'lib/cucumber/step_match.rb', line 98 def file_colon_line raise "No file:line for #{@step}" unless @step.file_colon_line @step.file_colon_line end |
#format_args(format) ⇒ Object
94 95 96 |
# File 'lib/cucumber/step_match.rb', line 94 def format_args(format) @name end |
#step_arguments ⇒ Object
111 112 113 |
# File 'lib/cucumber/step_match.rb', line 111 def step_arguments [] end |
#text_length ⇒ Object
107 108 109 |
# File 'lib/cucumber/step_match.rb', line 107 def text_length @step.text_length end |