Class: Lucid::NoStepMatch

Inherits:
Object show all
Defined in:
lib/lucid/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.



73
74
75
76
# File 'lib/lucid/step_match.rb', line 73

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



71
72
73
# File 'lib/lucid/step_match.rb', line 71

def name
  @name
end

#step_definitionObject (readonly)

Returns the value of attribute step_definition.



71
72
73
# File 'lib/lucid/step_match.rb', line 71

def step_definition
  @step_definition
end

Instance Method Details

#backtrace_lineObject



87
88
89
# File 'lib/lucid/step_match.rb', line 87

def backtrace_line
  @step.backtrace_line
end

#file_colon_lineObject



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

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

#format_args(format) ⇒ Object



78
79
80
# File 'lib/lucid/step_match.rb', line 78

def format_args(format)
  @name
end

#step_argumentsObject



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

def step_arguments
  []
end

#text_lengthObject



91
92
93
# File 'lib/lucid/step_match.rb', line 91

def text_length
  @step.text_length
end