An opinionated implementation of the Command pattern for Ruby applications. Cuprum wraps your business logic in a consistent, object-oriented interface and features status and error management, composability and control flow management.
Value class representing a single validation for a parameter.
BLOCK_VALIDATION_TYPE
= :_block_validation
Custom validation type for a block validation.
NAMED_VALIDATION_TYPE
= :_named_method_validation
Custom validation type for a named method validation.
#initialize(name:, type:, method_name: nil, **options, &block) => ValidationRule
#block => Object
Returns the value of attribute block
#method_name => Object
Returns the value of attribute method_name
#name => Object
Returns the value of attribute name
#options => Object
Returns the value of attribute options
#type => Object
Returns the value of attribute type
Back to Documentation | Reference | Cuprum | Cuprum::ParameterValidation