Sha256: 2777ea838f83145b8ae353bcb3f0136f7f2f389e58a3f9543256f33557272e93

Contents?: true

Size: 275 Bytes

Versions: 1

Compression:

Stored size: 275 Bytes

Contents

class String
  def url_encode(encoding=nil)
    stringByAddingPercentEscapesUsingEncoding ENCODINGS[encoding] || NSUTF8StringEncoding
  end

  def url_decode(encoding=nil)
    stringByReplacingPercentEscapesUsingEncoding ENCODINGS[encoding] || NSUTF8StringEncoding
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
under-os-http-1.4.0 lib/core/string.rb