Class: Cucumber::NoStepMatch

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/step_match.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step, name) ⇒ NoStepMatch

Returns a new instance of NoStepMatch.



79
80
81
82
# File 'lib/cucumber/step_match.rb', line 79

def initialize(step, name)
  @step = step
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



77
78
79
# File 'lib/cucumber/step_match.rb', line 77

def name
  @name
end

#step_definitionObject (readonly)

Returns the value of attribute step_definition.



77
78
79
# File 'lib/cucumber/step_match.rb', line 77

def step_definition
  @step_definition
end

Instance Method Details

#backtrace_lineObject



93
94
95
# File 'lib/cucumber/step_match.rb', line 93

def backtrace_line
  @step.backtrace_line
end

#file_colon_lineObject



88
89
90
91
# File 'lib/cucumber/step_match.rb', line 88

def file_colon_line
  raise "No file:line for #{@step}" unless @step.file_colon_line
  @step.file_colon_line
end

#format_args(format) ⇒ Object



84
85
86
# File 'lib/cucumber/step_match.rb', line 84

def format_args(format)
  @name
end

#text_lengthObject



97
98
99
# File 'lib/cucumber/step_match.rb', line 97

def text_length
  @step.text_length
end