--- !ruby/object:RI::MethodDescription 
aliases: 
- !ruby/object:RI::AliasName 
  name: count
- !ruby/object:RI::AliasName 
  name: length
block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Returns the total number of errors added. Two errors added to the same attribute will be counted as such with this as well.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  my_person = Person.new(params[:person])\n  my_person.errors.size\n  # =&gt; 0\n\n  my_person.errors.add('login', 'can not be empty') if my_person.login == ''\n  my_person.errors.add('password', 'can not be empty') if my_person.password == ''\n  my_person.error.size\n  # =&gt; 2\n"
full_name: ActiveResource::Errors#size
is_singleton: false
name: size
params: ()
visibility: public
