DataMapper::Property::Object
# File lib/dm-core/property/boolean.rb, line 13 13: def primitive?(value) 14: value == true || value == false 15: end
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.