Module: Mongoid::Extensions::String::Conversions

Included in:
String
Defined in:
lib/mongoid/extensions/string/conversions.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#get(value) ⇒ Object



9
10
11
# File 'lib/mongoid/extensions/string/conversions.rb', line 9

def get(value)
  value
end

#set(value) ⇒ Object



6
7
8
# File 'lib/mongoid/extensions/string/conversions.rb', line 6

def set(value)
  value.to_s unless value.nil?
end