Sha256: b44d31e3fd0a723d859318b4f762fc4f4c836c2c62014474705865c1c2a4775e

Contents?: true

Size: 434 Bytes

Versions: 6

Compression:

Stored size: 434 Bytes

Contents

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

    def self.included(base)
      base.class_eval do
        include Representable::Hash::Collection
        include Methods
      end
    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

6 entries across 6 versions & 1 rubygems

Version Path
representable-1.8.5 lib/representable/xml/collection.rb
representable-1.8.4 lib/representable/xml/collection.rb
representable-1.8.3 lib/representable/xml/collection.rb
representable-1.8.2 lib/representable/xml/collection.rb
representable-1.8.1 lib/representable/xml/collection.rb
representable-1.8.0 lib/representable/xml/collection.rb