Class: Stannum::Constraints::Signatures::Map
- Inherits:
-
Stannum::Constraints::Signature
- Object
- Base
- Stannum::Constraints::Signature
- Stannum::Constraints::Signatures::Map
- Defined in:
- lib/stannum/constraints/signatures/map.rb
Overview
Constraint for matching map-like objects.
Constant Summary
Constants inherited from Stannum::Constraints::Signature
Stannum::Constraints::Signature::NEGATED_TYPE, Stannum::Constraints::Signature::TYPE
Constants inherited from Base
Base::NEGATED_TYPE, Base::TYPE
Instance Attribute Summary
Attributes inherited from Stannum::Constraints::Signature
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(**options) ⇒ Map
constructor
A new instance of Map.
Methods inherited from Stannum::Constraints::Signature
#does_not_match?, #errors_for, #matches?, #negated_errors_for
Methods inherited from Base
#==, #clone, #does_not_match?, #dup, #errors_for, #match, #matches?, #message, #negated_errors_for, #negated_match, #negated_message, #negated_type, #type, #with_options
Constructor Details
#initialize(**options) ⇒ Map
Returns a new instance of Map.
13 14 15 |
# File 'lib/stannum/constraints/signatures/map.rb', line 13 def initialize(**) super(*EXPECTED_METHODS, **) end |