Exception: Flame::Errors::UnexpectedTypeOfHookError
- Inherits:
-
StandardError
- Object
- StandardError
- Flame::Errors::UnexpectedTypeOfHookError
- Defined in:
- lib/flame/errors.rb
Overview
Error for Flame::Router.find_path
Instance Method Summary collapse
-
#initialize(hook, route) ⇒ UnexpectedTypeOfHookError
constructor
A new instance of UnexpectedTypeOfHookError.
- #message ⇒ Object
Constructor Details
#initialize(hook, route) ⇒ UnexpectedTypeOfHookError
Returns a new instance of UnexpectedTypeOfHookError.
84 85 86 87 |
# File 'lib/flame/errors.rb', line 84 def initialize(hook, route) @hook = hook @route = route end |
Instance Method Details
#message ⇒ Object
89 90 91 92 |
# File 'lib/flame/errors.rb', line 89 def "Unexpected hook-block class '#{@hook.class}'" \ " in route '#{@route}'" end |