Module: MarkMapper::Extensions::Array::ClassMethods

Defined in:
lib/mark_mapper/extensions/array.rb

Instance Method Summary collapse

Instance Method Details

#from_marklogic(value) ⇒ Object


13
14
15
# File 'lib/mark_mapper/extensions/array.rb', line 13

def from_marklogic(value)
  value || []
end

#to_marklogic(value) ⇒ Object


8
9
10
11
# File 'lib/mark_mapper/extensions/array.rb', line 8

def to_marklogic(value)
  value = value.respond_to?(:lines) ? value.lines : value
  value.to_a
end