ActiveModel::Errors
Inherits Enumerable < Reference < Object
Constructors
new
Instance methods
<<(error : Error) : Nil
as_json
attribute_names
clear
count
details
each
Must yield this collection's elements to the block.
empty?
Returns true if self does not contain any element.
([] of Int32).empty? # => true
([1]).empty? # => false
[nil, false].empty? # => false
#present?returns the inverse.
full_messages
group_by_attribute
messages
size
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4