Parent

Included Modules

DataMapper::Property::Csv

Public Instance Methods

dump(value) click to toggle source
    # File lib/dm-types/csv.rb, line 26
26:       def dump(value)
27:         case value
28:           when ::Array
29:             CSV.generate { |csv| value.each { |row| csv << row } }
30:           when ::String then value
31:         end
32:       end
load(value) click to toggle source
    # File lib/dm-types/csv.rb, line 19
19:       def load(value)
20:         case value
21:         when ::String then CSV.parse(value)
22:         when ::Array  then value
23:         end
24:       end
primitive?(value) click to toggle source
    # File lib/dm-types/csv.rb, line 15
15:       def primitive?(value)
16:         super || value.kind_of?(::Array)
17:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.