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.

[View source]

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

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.


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

def name
  @name
end

#step_definitionObject (readonly)

Returns the value of attribute step_definition.


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

def step_definition
  @step_definition
end

Instance Method Details

#backtrace_lineObject

[View source]

99
100
101
# File 'lib/cucumber/step_match.rb', line 99

def backtrace_line
  @step.backtrace_line
end

#file_colon_lineObject

[View source]

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

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

#format_args(format) ⇒ Object

[View source]

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

def format_args(format)
  @name
end

#text_lengthObject

[View source]

103
104
105
# File 'lib/cucumber/step_match.rb', line 103

def text_length
  @step.text_length
end