Sha256: 8fd79e6537cb4dcbdd71eb6a1e3d0bd0a4db35bf02c7ebe8bcc860a74a229195
Contents?: true
Size: 597 Bytes
Versions: 17
Compression:
Stored size: 597 Bytes
Contents
module Representable::XML module Collection def self.included(base) base.send :include, Representable::XML base.send :include, Representable::Hash::Collection base.send :include, Methods end module Methods def create_representation_with(doc, options, format) bin = representable_map(options, format).first bin.write(doc, super, bin.name) end def update_properties_from(doc, *args) super(doc.search("./*"), *args) # pass the list of collection items to Hash::Collection#update_properties_from. end end end end
Version data entries
17 entries across 17 versions & 3 rubygems