Class: Stannum::Constraints::Signatures::Map

Inherits:
Stannum::Constraints::Signature show all
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

#expected_methods

Attributes inherited from Base

#options

Instance Method Summary collapse

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.

Parameters:

  • options (Hash<Symbol, Object>)

    Configuration options for the constraint. Defaults to an empty Hash.



13
14
15
# File 'lib/stannum/constraints/signatures/map.rb', line 13

def initialize(**options)
  super(*EXPECTED_METHODS, **options)
end