class DataMapper::Property::Legacy::URIText
Public Instance Methods
dump(value)
click to toggle source
URI escapes data.
@param [String, nil] value
The raw data.
@return [String, nil]
The URI escaped data.
# File lib/dm-core/property/legacy/uri_text.rb, line 32 def dump(value) ::URI.escape(value) unless value.nil? end
load(value)
click to toggle source
Unescaped URI escaped data.
@param [String, nil] value
The URI escaped data.
@return [String, nil]
The URI unescaped data.
# File lib/dm-core/property/legacy/uri_text.rb, line 19 def load(value) ::URI.unescape(value) unless value.nil? end