Class: Cucumber::NoStepMatch

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step) ⇒ NoStepMatch

Returns a new instance of NoStepMatch.



36
37
38
# File 'lib/cucumber/step_match.rb', line 36

def initialize(step)
  @step = step
end

Instance Attribute Details

#step_definitionObject (readonly)

Returns the value of attribute step_definition.



34
35
36
# File 'lib/cucumber/step_match.rb', line 34

def step_definition
  @step_definition
end

Instance Method Details

#backtrace_lineObject



49
50
51
# File 'lib/cucumber/step_match.rb', line 49

def backtrace_line
  @step.backtrace_line
end

#file_colon_lineObject



44
45
46
47
# File 'lib/cucumber/step_match.rb', line 44

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

#format_args(format) ⇒ Object



40
41
42
# File 'lib/cucumber/step_match.rb', line 40

def format_args(format)
  @step.name
end

#text_lengthObject



53
54
55
# File 'lib/cucumber/step_match.rb', line 53

def text_length
  @step.text_length
end