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


111
112
113
114
# File 'lib/cucumber/step_match.rb', line 111

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


109
110
111
# File 'lib/cucumber/step_match.rb', line 109

def name
  @name
end

#step_definitionObject (readonly)

Returns the value of attribute step_definition


109
110
111
# File 'lib/cucumber/step_match.rb', line 109

def step_definition
  @step_definition
end

Instance Method Details

#activate(test_step) ⇒ Object


142
143
144
145
# File 'lib/cucumber/step_match.rb', line 142

def activate(test_step)
  # noop
  return test_step
end

#backtrace_lineObject


130
131
132
# File 'lib/cucumber/step_match.rb', line 130

def backtrace_line
  @step.backtrace_line
end

#file_colon_lineObject


125
126
127
128
# File 'lib/cucumber/step_match.rb', line 125

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

#format_args(*_args) ⇒ Object


116
117
118
# File 'lib/cucumber/step_match.rb', line 116

def format_args(*_args)
  @name
end

#locationObject


120
121
122
123
# File 'lib/cucumber/step_match.rb', line 120

def location
  raise "No location for #{@step}" unless @step.location
  @step.location
end

#step_argumentsObject


138
139
140
# File 'lib/cucumber/step_match.rb', line 138

def step_arguments
  []
end

#text_lengthObject


134
135
136
# File 'lib/cucumber/step_match.rb', line 134

def text_length
  @step.text_length
end