123456789_123456789_123456789_123456789_123456789_

Class: Mongoid::RawValue

Relationships & Source Files
Inherits: Object
Defined in: lib/mongoid/extensions/raw_value.rb

Overview

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

Class Method Summary

Instance Attribute Summary

Instance Method Summary

  • #inspect ⇒ String

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

Constructor Details

.new(raw_value) ⇒ RawValue

[ GitHub ]

  
# File 'lib/mongoid/extensions/raw_value.rb', line 22

def initialize(raw_value)
  @raw_value = raw_value
end

Instance Attribute Details

#raw_value (readonly)

[ GitHub ]

  
# File 'lib/mongoid/extensions/raw_value.rb', line 20

attr_reader :raw_value

Instance Method Details

#inspectString

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

Returns:

  • (String)

    The object inspection.

[ GitHub ]

  
# File 'lib/mongoid/extensions/raw_value.rb', line 30

def inspect
  "RawValue: #{raw_value.inspect}"
end