Class: Attributor::Flatpack::UndefinedKey

Inherits:
LoadError
  • Object
show all
Defined in:
lib/attributor/flatpack/undefined_key.rb

Instance Method Summary collapse

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