Exception: Cucumber::Undefined

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

Overview

Raised when there is no matching StepDefinition for a step.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step_name) ⇒ Undefined

Returns a new instance of Undefined.



6
7
8
9
# File 'lib/cucumber/errors.rb', line 6

def initialize(step_name)
  super %{Undefined step: "#{step_name}"}
  @step_name = step_name
end

Instance Attribute Details

#step_nameObject (readonly)

Returns the value of attribute step_name.



4
5
6
# File 'lib/cucumber/errors.rb', line 4

def step_name
  @step_name
end

Instance Method Details

#nested!Object



11
12
13
# File 'lib/cucumber/errors.rb', line 11

def nested!
  @nested = true
end

#nested?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/cucumber/errors.rb', line 15

def nested?
  @nested
end