Module DataMapper::Ext::Object
In: lib/dm-core/support/ext/object.rb

Methods

Public Class methods

Returns the value of the specified constant.

@overload full_const_get(obj, name)

  Returns the value of the specified constant in +obj+.
  @param [Object] obj The root object used as origin.
  @param [String] name The name of the constant to get, e.g. "Merb::Router".

@overload full_const_get(name)

  Returns the value of the fully-qualified constant.
  @param [String] name The name of the constant to get, e.g. "Merb::Router".

@return [Object] The constant corresponding to name.

@api semipublic

Sets the specified constant to the given value.

@overload full_const_set(obj, name)

  Sets the specified constant in +obj+ to the given +value+.
  @param [Object] obj The root object used as origin.
  @param [String] name The name of the constant to set, e.g. "Merb::Router".
  @param [Object] value The value to assign to the constant.

@overload full_const_set(name)

  Sets the fully-qualified constant to the given +value+.
  @param [String] name The name of the constant to set, e.g. "Merb::Router".
  @param [Object] value The value to assign to the constant.

@return [Object] The constant corresponding to name.

@api semipublic

[Validate]