Sha256: d5fdbb228d2ffee415a79fe182c7723b0e0954c2b8ed51d81c9b483838b83bbb

Contents?: true

Size: 286 Bytes

Versions: 6

Compression:

Stored size: 286 Bytes

Contents

# encoding: UTF-8
require 'set'

module MarkMapper
  module Extensions
    module Set
      def to_marklogic(value)
        value.to_a
      end

      def from_marklogic(value)
        (value || []).to_set
      end
    end
  end
end

class Set
  extend MarkMapper::Extensions::Set
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mark_mapper-0.0.6 lib/mark_mapper/extensions/set.rb
mark_mapper-0.0.5 lib/mark_mapper/extensions/set.rb
mark_mapper-0.0.4 lib/mark_mapper/extensions/set.rb
mark_mapper-0.0.3 lib/mark_mapper/extensions/set.rb
mark_mapper-0.0.2 lib/mark_mapper/extensions/set.rb
mark_mapper-0.0.1 lib/mark_mapper/extensions/set.rb