Exception: MouseMelon::StepNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- MouseMelon::StepNotFound
- Defined in:
- lib/mouse_melon/dsl.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ StepNotFound
constructor
A new instance of StepNotFound.
Constructor Details
#initialize(name) ⇒ StepNotFound
Returns a new instance of StepNotFound.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/mouse_melon/dsl.rb', line 4 def initialize(name) @method_name = name @step_name = name.to_s.gsub(/_/, ' ') super "undefined step '#{@step_name}' Please define the step by one of the following definition: step \"#{@step_name}\" do end or def #{@method_name} do end " end |