Exception: Inform::BehaviorError

Inherits:
TypeError
  • Object
show all
Defined in:
lib/story_teller/experimental/handler_dsl.rb

Overview

The BehaviorError class

Constant Summary collapse

MESSAGE =
'Behavior registry for %<key>s is not a Module (got %<clazz>s)'.freeze

Instance Method Summary collapse

Constructor Details

#initialize(key, behavior) ⇒ BehaviorError

Returns a new instance of BehaviorError.



65
66
67
# File 'lib/story_teller/experimental/handler_dsl.rb', line 65

def initialize(key, behavior)
  super(format(MESSAGE, key: key, clazz: behavior.class))
end