Class: ActiveModel::Validations::HashBlockValidator
- Inherits:
-
BlockValidator
- Object
- BlockValidator
- ActiveModel::Validations::HashBlockValidator
- Defined in:
- lib/validates_serialized/validators/hash_block_validator.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(options, &block) ⇒ HashBlockValidator
constructor
A new instance of HashBlockValidator.
Constructor Details
#initialize(options, &block) ⇒ HashBlockValidator
Returns a new instance of HashBlockValidator.
4 5 6 7 8 |
# File 'lib/validates_serialized/validators/hash_block_validator.rb', line 4 def initialize(, &block) @block = block @options = super end |