module Representable::XML::AttributeHash

Public Class Methods

included(base) click to toggle source
# File lib/representable/xml/hash.rb, line 9
def self.included(base)
  base.class_eval do
    include Representable
    extend ClassMethods
    property(:_self, hash: true, use_attributes: true)
  end
end

Public Instance Methods

create_representation_with(doc, options, format) click to toggle source
# File lib/representable/xml/hash.rb, line 24
def create_representation_with(doc, options, format)
  bin = representable_bindings_for(format, options).first
  bin.write(doc, super, options)
end