Sha256: 44124171a59bf508d0a2c446061c0c09d20a12daa6097aedceee579b1240a97b

Contents?: true

Size: 562 Bytes

Versions: 3

Compression:

Stored size: 562 Bytes

Contents

require 'uri'

require 'facets/uri/cgi_escape.rb'
require 'facets/uri/cgi_unescape.rb'
require 'facets/uri/cgi_parse.rb'
require 'facets/uri/decode.rb'
require 'facets/uri/parameters.rb'
require 'facets/uri/query.rb'

module URI

  module Kernel
    #
    def uri(s, w=%r{[^a-zA-Z_0-9./-]})
      URI.escape(s, w)
    end

    #
    def unuri(s)
      URI.unescape(s)
    end
  end

  module Hash
    #
    def to_uri
      URI.hash_to_query(self)
    end
  end

end

class Object #:nodoc:
  include URI::Kernel
end

class Hash #:nodoc:
  include URI::Hash
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/standard/facets/uri.rb
facets-3.1.0 lib/standard/facets/uri.rb
facets-3.0.0 lib/standard/facets/uri.rb