Module Mongoid::Extensions::Object::Reflections
In: lib/mongoid/extensions/object/reflections.rb

This module contains reflection convenience methods.

Methods

ivar   remove_ivar  

Public Instance methods

Get the value for an instance variable or nil if it doesn‘t exist.

@example Get the value for an instance var.

  document.ivar("person")

@param [ String ] name The name of the variable.

@return [ Object, nil ] The value or nil.

@since 2.0.0.rc.1

Remove the instance variable for the provided name.

@example Remove the instance variable

  document.remove_ivar("person")

@param [ String ] name The name of the variable.

@return [ true, false ] If the variable was defined.

@since 2.1.0

[Validate]