module Roar::XML

Includes from_xml and to_xml into your represented object. In addition to that, some more options are available when declaring properties.

Public Class Methods

included(base) click to toggle source
# File lib/roar/xml.rb, line 9
def self.included(base)
  base.class_eval do
    include Representer # Roar::Representer, this is needed for Rails URL helpers
    include Representable::XML

    extend ClassMethods
    include InstanceMethods # otherwise Representable overrides our #to_xml.
  end
end