Module: MarkMapper::Extensions::Set

Included in:
Set
Defined in:
lib/mark_mapper/extensions/set.rb

Instance Method Summary collapse

Instance Method Details

#from_marklogic(value) ⇒ Object


11
12
13
# File 'lib/mark_mapper/extensions/set.rb', line 11

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

#to_marklogic(value) ⇒ Object


7
8
9
# File 'lib/mark_mapper/extensions/set.rb', line 7

def to_marklogic(value)
  value.to_a
end