Class: Stannum::Constraints::Types::ProcType
- Inherits:
-
Stannum::Constraints::Type
- Object
- Base
- Stannum::Constraints::Type
- Stannum::Constraints::Types::ProcType
- Defined in:
- lib/stannum/constraints/types/proc_type.rb
Overview
A Proc type constraint asserts that the object is a Proc.
Constant Summary
Constants inherited from Stannum::Constraints::Type
Stannum::Constraints::Type::NEGATED_TYPE, Stannum::Constraints::Type::TYPE
Constants inherited from Base
Base::NEGATED_TYPE, Base::TYPE
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(**options) ⇒ ProcType
constructor
A new instance of ProcType.
Methods inherited from Stannum::Constraints::Type
#errors_for, #expected_type, #matches?, #negated_errors_for, #with_options
Methods included from Support::Optional
#optional?, #required?, resolve
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) ⇒ ProcType
Returns a new instance of ProcType.
10 11 12 |
# File 'lib/stannum/constraints/types/proc_type.rb', line 10 def initialize(**) super(::Proc, **) end |