# File lib/dm-types/slug.rb, line 23defescape(string)
string.to_urlend
typecast(value)click to toggle source
# File lib/dm-types/slug.rb, line 13deftypecast(value)
ifvalue.nil?nilelsifvalue.respond_to?(:to_str)
escape(value.to_str)
elseraiseArgumentError, '+value+ must be nil or respond to #to_str'endend