Class: Dry::Types::UnknownKeysError
- Inherits:
-
SchemaKeyError
- Object
- Dry::Types::UnknownKeysError
- Defined in:
- lib/dry/types/errors.rb
Instance Attribute Summary collapse
- #keys ⇒ Array<Symbol> readonly
Instance Method Summary collapse
-
#initialize(keys) ⇒ UnknownKeysError
constructor
A new instance of UnknownKeysError.
Constructor Details
#initialize(keys) ⇒ UnknownKeysError
Returns a new instance of UnknownKeysError.
110 111 112 113 |
# File 'lib/dry/types/errors.rb', line 110 def initialize(keys) @keys = keys super("unexpected keys #{keys.inspect} in Hash input") end |
Instance Attribute Details
#keys ⇒ Array<Symbol> (readonly)
107 108 109 |
# File 'lib/dry/types/errors.rb', line 107 def keys @keys end |