Exception: ContractedValue::Errors::UnexpectedInputKeys

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/contracted_value/core.rb

Instance Method Summary collapse

Constructor Details

#initialize(keys) ⇒ UnexpectedInputKeys

Returns a new instance of UnexpectedInputKeys.



84
85
86
87
88
89
90
# File 'lib/contracted_value/core.rb', line 84

def initialize(keys)
  super(
    <<~MSG
      Unexpected key(s) #{keys.map{|key| ":#{key}" }.join(", ")} detected in input
    MSG
  )
end