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.
- #text_length ⇒ Object
Constructor Details
#initialize(step, name) ⇒ NoStepMatch
Returns a new instance of NoStepMatch.
39 40 41 42 |
# File 'lib/cucumber/step_match.rb', line 39 def initialize(step, name) @step = step @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
37 38 39 |
# File 'lib/cucumber/step_match.rb', line 37 def name @name end |
#step_definition ⇒ Object (readonly)
Returns the value of attribute step_definition.
37 38 39 |
# File 'lib/cucumber/step_match.rb', line 37 def step_definition @step_definition end |
Instance Method Details
#backtrace_line ⇒ Object
53 54 55 |
# File 'lib/cucumber/step_match.rb', line 53 def backtrace_line @step.backtrace_line end |
#file_colon_line ⇒ Object
48 49 50 51 |
# File 'lib/cucumber/step_match.rb', line 48 def file_colon_line raise "No file:line for #{@step}" unless @step.file_colon_line @step.file_colon_line end |
#format_args(format) ⇒ Object
44 45 46 |
# File 'lib/cucumber/step_match.rb', line 44 def format_args(format) @name end |
#text_length ⇒ Object
57 58 59 |
# File 'lib/cucumber/step_match.rb', line 57 def text_length @step.text_length end |