Parent

DataMapper::Property::URI

Public Instance Methods

custom?() click to toggle source
    # File lib/dm-types/uri.rb, line 12
12:       def custom?
13:         true
14:       end
dump(value) click to toggle source
    # File lib/dm-types/uri.rb, line 28
28:       def dump(value)
29:         value.to_s unless value.nil?
30:       end
load(value) click to toggle source
    # File lib/dm-types/uri.rb, line 24
24:       def load(value)
25:         Addressable::URI.parse(value)
26:       end
primitive?(value) click to toggle source
    # File lib/dm-types/uri.rb, line 16
16:       def primitive?(value)
17:         value.kind_of?(Addressable::URI)
18:       end
typecast_to_primitive(value) click to toggle source
    # File lib/dm-types/uri.rb, line 32
32:       def typecast_to_primitive(value)
33:         load(value)
34:       end
valid?(value, negated = false) click to toggle source
    # File lib/dm-types/uri.rb, line 20
20:       def valid?(value, negated = false)
21:         super || primitive?(value) || value.kind_of?(::String)
22:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.