Class: Serega::SeregaValidations::Attribute::CheckBlock
- Inherits:
-
Object
- Object
- Serega::SeregaValidations::Attribute::CheckBlock
- Defined in:
- lib/serega/validations/attribute/check_block.rb
Overview
Attribute block
parameter validator
Class Method Summary collapse
-
.call(block) ⇒ void
Checks block parameter provided with attribute.
Class Method Details
.call(block) ⇒ void
This method returns an undefined value.
Checks block parameter provided with attribute. Must have up to two arguments - object and context. It should not have any *rest or **key arguments
34 35 36 37 38 |
# File 'lib/serega/validations/attribute/check_block.rb', line 34 def call(block) return unless block check_block(block) end |