Method: Representable::XML.included

Defined in:
lib/representable/xml.rb

.included(base) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/representable/xml.rb', line 12

def self.included(base)
  base.class_eval do
    include Representable
    extend ClassMethods
    self.representation_wrap = true # let representable compute it.
    register_feature Representable::XML
  end
end