class Mongoid::RawValue

Represents a value which cannot be type-casted between Ruby and MongoDB.

Attributes

raw_value[R]

Public Class Methods

new(raw_value) click to toggle source
# File lib/mongoid/extensions/raw_value.rb, line 22
def initialize(raw_value)
  @raw_value = raw_value
end

Public Instance Methods

inspect() click to toggle source

Returns a string containing a human-readable representation of the object, including the inspection of the underlying value.

@return [ String ] The object inspection.

# File lib/mongoid/extensions/raw_value.rb, line 30
def inspect
  "RawValue: #{raw_value.inspect}"
end