Sha256: 4994dbb235e7bf1c82399163530566b99bbcf3960c92c673dcfaa358dbd777b3

Contents?: true

Size: 428 Bytes

Versions: 65

Compression:

Stored size: 428 Bytes

Contents

module ActiveFedora
  class Relation
    class HashMerger # :nodoc:
    end

    class Merger # :nodoc:
      attr_reader :relation, :values, :other

      def initialize(relation, other)
        @relation = relation
        @values   = other.values
        @other    = other
      end

      def merge
        # TODO: merge order
        relation.where_values += other.where_values
        relation
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
active-fedora-11.1.2 lib/active_fedora/relation/merger.rb
active-fedora-11.1.1 lib/active_fedora/relation/merger.rb
active-fedora-11.1.0 lib/active_fedora/relation/merger.rb
active-fedora-10.3.0 lib/active_fedora/relation/merger.rb
active-fedora-9.7.3 lib/active_fedora/relation/merger.rb
active-fedora-11.0.1 lib/active_fedora/relation/merger.rb
active-fedora-11.0.0 lib/active_fedora/relation/merger.rb
active-fedora-10.3.0.rc2 lib/active_fedora/relation/merger.rb
active-fedora-11.0.0.rc7 lib/active_fedora/relation/merger.rb
active-fedora-10.3.0.rc1 lib/active_fedora/relation/merger.rb
active-fedora-11.0.0.rc6 lib/active_fedora/relation/merger.rb
active-fedora-10.2.1 lib/active_fedora/relation/merger.rb
active-fedora-11.0.0.rc5 lib/active_fedora/relation/merger.rb
active-fedora-11.0.0.rc4 lib/active_fedora/relation/merger.rb
active-fedora-10.2.0 lib/active_fedora/relation/merger.rb
active-fedora-11.0.0.rc3 lib/active_fedora/relation/merger.rb
active-fedora-11.0.0.rc2 lib/active_fedora/relation/merger.rb
active-fedora-11.0.0.rc1 lib/active_fedora/relation/merger.rb
active-fedora-10.1.0 lib/active_fedora/relation/merger.rb
active-fedora-10.1.0.rc1 lib/active_fedora/relation/merger.rb