Module: MarkMapper::Extensions::SymbolClassMethods

Included in:
Symbol
Defined in:
lib/mark_mapper/extensions/symbol.rb

Instance Method Summary collapse

Instance Method Details

#from_marklogic(value) ⇒ Object


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

def from_marklogic(value)
  value && value.to_s.to_sym
end

#to_marklogic(value) ⇒ Object


5
6
7
# File 'lib/mark_mapper/extensions/symbol.rb', line 5

def to_marklogic(value)
  value && value.to_s.to_sym
end