Class: Dry::Types::MissingKeyError
- Inherits:
-
SchemaKeyError
- Object
- Dry::Types::MissingKeyError
- Defined in:
- lib/dry/types/errors.rb
Instance Attribute Summary collapse
- #key ⇒ Symbol readonly
Instance Method Summary collapse
-
#initialize(key) ⇒ MissingKeyError
constructor
A new instance of MissingKeyError.
Constructor Details
#initialize(key) ⇒ MissingKeyError
Returns a new instance of MissingKeyError.
99 100 101 102 |
# File 'lib/dry/types/errors.rb', line 99 def initialize(key) @key = key super("#{key.inspect} is missing in Hash input") end |
Instance Attribute Details
#key ⇒ Symbol (readonly)
96 97 98 |
# File 'lib/dry/types/errors.rb', line 96 def key @key end |