Class: Cucumber::NoStepMatch

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/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.



108
109
110
111
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_match.rb', line 108

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



106
107
108
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_match.rb', line 106

def name
  @name
end

#step_definitionObject (readonly)

Returns the value of attribute step_definition.



106
107
108
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_match.rb', line 106

def step_definition
  @step_definition
end

Instance Method Details

#activate(test_step) ⇒ Object



139
140
141
142
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_match.rb', line 139

def activate(test_step)
  # noop
  test_step
end

#backtrace_lineObject



127
128
129
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_match.rb', line 127

def backtrace_line
  @step.backtrace_line
end

#file_colon_lineObject



123
124
125
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_match.rb', line 123

def file_colon_line
  location.to_s
end

#format_args(*_args) ⇒ Object



113
114
115
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_match.rb', line 113

def format_args(*_args)
  @name
end

#locationObject



117
118
119
120
121
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_match.rb', line 117

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

  @step.location
end

#step_argumentsObject



135
136
137
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_match.rb', line 135

def step_arguments
  []
end

#text_lengthObject



131
132
133
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_match.rb', line 131

def text_length
  @step.text.length
end