Parent

DataMapper::Property::FilePath

Public Instance Methods

dump(value) click to toggle source
    # File lib/dm-types/file_path.rb, line 22
22:       def dump(value)
23:         value.to_s unless DataMapper::Ext.blank?(value)
24:       end
load(value) click to toggle source
    # File lib/dm-types/file_path.rb, line 18
18:       def load(value)
19:         Pathname.new(value) unless DataMapper::Ext.blank?(value)
20:       end
primitive?(value) click to toggle source
    # File lib/dm-types/file_path.rb, line 10
10:       def primitive?(value)
11:         value.kind_of?(Pathname)
12:       end
typecast_to_primitive(value) click to toggle source
    # File lib/dm-types/file_path.rb, line 26
26:       def typecast_to_primitive(value)
27:         load(value)
28:       end
valid?(value, negated = false) click to toggle source
    # File lib/dm-types/file_path.rb, line 14
14:       def valid?(value, negated = false)
15:         super || dump(value).kind_of?(::String)
16:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.