Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class StandardError
- def to_xml(options = {})
- options[:indent] ||= 2
- xml = options[:builder] ||= Builder::XmlMarkup.new(:indent => options[:indent])
- xml.instruct! unless options[:skip_instruct]
- xml.tag!(self.class.name.demodulize.underscore.dasherize) do
- xml.tag!(:message, message)
- end
- end
- end
Add Comment
Please, Sign In to add comment