BlockValidator is a special EachValidator which receives a block on initialization and call this block for each attribute being validated. validates_each uses this validator.

Methods
N
Class Public methods
new(options, &block)
# File activemodel/lib/active_model/validator.rb, line 173
def initialize(options, &block)
  @block = block
  super
end