Parent

Methods

DataMapper::Property::Slug

Public Instance Methods

escape(string) click to toggle source
    # File lib/dm-types/slug.rb, line 23
23:       def escape(string)
24:         string.to_url
25:       end
typecast(value) click to toggle source
    # File lib/dm-types/slug.rb, line 13
13:       def typecast(value)
14:         if value.nil?
15:           nil
16:         elsif value.respond_to?(:to_str)
17:           escape(value.to_str)
18:         else
19:           raise ArgumentError, '+value+ must be nil or respond to #to_str'
20:         end
21:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.