Exception: ContractedValue::Errors::InvalidAttributeDefaultValue

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

Instance Method Summary collapse

Constructor Details

#initialize(key, val) ⇒ InvalidAttributeDefaultValue

Returns a new instance of InvalidAttributeDefaultValue.



73
74
75
76
77
78
79
80
# File 'lib/contracted_value/core.rb', line 73

def initialize(key, val)
  super(
    <<~MSG
      Attribute :#{key} is declared with invalid default value:
      #{val.inspect}
    MSG
  )
end