Included Modules

Class Index [+]

Quicksearch

DataMapper::Property::Class

Public Instance Methods

typecast_to_primitive(value) click to toggle source

Typecast a value to a Class

@param [#] value

  value to typecast

@return [Class]

  Class constructed from value

@api private

    # File lib/dm-core/property/class.rb, line 17
17:       def typecast_to_primitive(value)
18:         DataMapper::Ext::Module.find_const(model, value.to_s)
19:       rescue NameError
20:         value
21:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.