--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Returns an XML representation of this error object.
- !ruby/struct:SM::Flow::VERB 
  body: "  class Company &lt; ActiveRecord::Base\n    validates_presence_of :name, :address, :email\n    validates_length_of :name, :in =&gt; 5..30\n  end\n\n  company = Company.create(:address =&gt; '123 First St.')\n  company.errors.to_xml\n  # =&gt;  &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n  #     &lt;errors&gt;\n  #       &lt;error&gt;Name is too short (minimum is 5 characters)&lt;/error&gt;\n  #       &lt;error&gt;Name can't be blank&lt;/error&gt;\n  #       &lt;error&gt;Address can't be blank&lt;/error&gt;\n  #     &lt;/errors&gt;\n"
full_name: ActiveRecord::Errors#to_xml
is_singleton: false
name: to_xml
params: (options={})
visibility: public
