Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/mongo_odm/core_ext/conversions.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.type_cast(value) ⇒ Object
137 138 139 140 141 142 143 |
# File 'lib/mongo_odm/core_ext/conversions.rb', line 137 def self.type_cast(value) case value when nil then nil when String, Symbol then value.to_s else value.inspect end end |
Instance Method Details
#to_mongo ⇒ Object
145 146 147 |
# File 'lib/mongo_odm/core_ext/conversions.rb', line 145 def to_mongo self end |