Sha256: 0b6a24edd7d4f9cb757dc65781f83eb91410176f716532794bef095dbb82b505

Contents?: true

Size: 419 Bytes

Versions: 10

Compression:

Stored size: 419 Bytes

Contents

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

    def self.included(base)
      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.1.3 lib/representable/xml/collection.rb
representable-2.1.1 lib/representable/xml/collection.rb
representable-2.1.0 lib/representable/xml/collection.rb
representable-2.0.4 lib/representable/xml/collection.rb
representable-2.0.3 lib/representable/xml/collection.rb
representable-2.0.2 lib/representable/xml/collection.rb
representable-2.0.1 lib/representable/xml/collection.rb
representable-2.0.0 lib/representable/xml/collection.rb
representable-2.0.0.rc2 lib/representable/xml/collection.rb
representable-2.0.0.rc1 lib/representable/xml/collection.rb