Class: Stannum::Constraints::Signatures::Tuple
- Inherits:
-
Stannum::Constraints::Signature
- Object
- Base
- Stannum::Constraints::Signature
- Stannum::Constraints::Signatures::Tuple
- Defined in:
- lib/stannum/constraints/signatures/tuple.rb
Overview
Constraint for matching tuple-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) ⇒ Tuple
constructor
A new instance of Tuple.
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) ⇒ Tuple
Returns a new instance of Tuple.
13 14 15 |
# File 'lib/stannum/constraints/signatures/tuple.rb', line 13 def initialize(**) super(*EXPECTED_METHODS, **) end |