Method: Object#to_xml
- Defined in:
- lib/strokedb/util/xml.rb
#to_xml(options = {}) ⇒ Object
2 3 4 5 |
# File 'lib/strokedb/util/xml.rb', line 2 def to_xml( = {}) xml = [:builder] xml.tag!([:root], [:skip_types] ? {} : {:type => self.class.to_s.underscore},to_s) end |