= private = protected
each
Iterates through each error object.
person.errors.add(:name, :too_short, count: 2) person.errors.each do |error| # Will yield <#ActiveModel::Error attribute=name, type=too_short, options={:count=>3}> end
# File activemodel/lib/active_model/errors.rb, line 79