Class: TrueClass

Inherits:
Object
  • Object
show all
Defined in:
lib/mongo_odm/core_ext/conversions.rb

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) type_cast(value)



177
178
179
180
# File 'lib/mongo_odm/core_ext/conversions.rb', line 177

def self.type_cast(value)
  return nil if value.nil?
  true
end

Instance Method Details

- (Object) to_mongo



182
183
184
# File 'lib/mongo_odm/core_ext/conversions.rb', line 182

def to_mongo
  self
end