Included Modules

Class Index [+]

Quicksearch

DataMapper::Property::Boolean

Constants

TRUE_VALUES
FALSE_VALUES
BOOLEAN_MAP

Public Instance Methods

primitive?(value) click to toggle source
    # File lib/dm-core/property/boolean.rb, line 13
13:       def primitive?(value)
14:         value == true || value == false
15:       end
typecast_to_primitive(value) click to toggle source

Typecast a value to a true or false

@param [Integer, #] value

  value to typecast

@return [Boolean]

  true or false constructed from value

@api private

    # File lib/dm-core/property/boolean.rb, line 26
26:       def typecast_to_primitive(value)
27:         BOOLEAN_MAP.fetch(value, value)
28:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.