Methods
H
L
N
R
V
Attributes
[RW] age
[R] errors
[RW] name
Class Public methods
human_attribute_name(attr, options = {})
# File activemodel/test/cases/errors_test.rb, line 21
def self.human_attribute_name(attr, options = {})
  attr
end
lookup_ancestors()
# File activemodel/test/cases/errors_test.rb, line 25
def self.lookup_ancestors
  [self]
end
new()
# File activemodel/test/cases/errors_test.rb, line 6
def initialize
  @errors = ActiveModel::Errors.new(self)
end
Instance Public methods
read_attribute_for_validation(attr)
# File activemodel/test/cases/errors_test.rb, line 17
def read_attribute_for_validation(attr)
  send(attr)
end
validate!()
# File activemodel/test/cases/errors_test.rb, line 13
def validate!
  errors.add(:name, :blank, message: "cannot be nil") if name == nil
end