Class: Attributor::Flatpack::UndefinedKey
- Inherits:
-
LoadError
- Object
- LoadError
- Attributor::Flatpack::UndefinedKey
- Defined in:
- lib/attributor/flatpack/undefined_key.rb
Instance Method Summary collapse
-
#initialize(key, context) ⇒ UndefinedKey
constructor
A new instance of UndefinedKey.
Constructor Details
#initialize(key, context) ⇒ UndefinedKey
Returns a new instance of UndefinedKey.
6 7 8 9 |
# File 'lib/attributor/flatpack/undefined_key.rb', line 6 def initialize(key, context) ctx = Attributor.humanize_context(context) super "Undefined key received: #{key.inspect} for #{ctx}" end |