Sha256: 2c5abc36254284bcf1d546af33b77eb654e198c007778d32b7cb18c3dbf31855

Contents?: true

Size: 465 Bytes

Versions: 10

Compression:

Stored size: 465 Bytes

Contents

module Representable::XML
  module Collection
    include Representable::XML

    def self.included(base)
      base.send :include, Representable::XML
      base.send :include, Representable::Hash::Collection
      base.send :include, Methods
    end


    module Methods
      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

10 entries across 10 versions & 1 rubygems

Version Path
representable-2.3.0 lib/representable/xml/collection.rb
representable-2.2.3 lib/representable/xml/collection.rb
representable-2.2.2 lib/representable/xml/collection.rb
representable-2.2.1 lib/representable/xml/collection.rb
representable-2.2.0 lib/representable/xml/collection.rb
representable-2.1.8 lib/representable/xml/collection.rb
representable-2.1.7 lib/representable/xml/collection.rb
representable-2.1.6 lib/representable/xml/collection.rb
representable-2.1.5 lib/representable/xml/collection.rb
representable-2.1.4 lib/representable/xml/collection.rb