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.
Public Class Methods
new(options, &block)click to toggle source
# File D:/Develope/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activemodel-3.0.9/lib/active_model/validator.rb, line 175definitialize(options, &block)
@block = blocksuperend