Guest User

Untitled

a guest
Jun 19th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. class StandardError
  2. def to_xml(options = {})
  3. options[:indent] ||= 2
  4. xml = options[:builder] ||= Builder::XmlMarkup.new(:indent => options[:indent])
  5. xml.instruct! unless options[:skip_instruct]
  6. xml.tag!(self.class.name.demodulize.underscore.dasherize) do
  7. xml.tag!(:message, message)
  8. end
  9. end
  10. end
Add Comment
Please, Sign In to add comment