Class: Hash
Class Method Summary collapse
-
.decode_uri(string) ⇒ Hash
Decode an URL encoded form to a Hash.
Instance Method Summary collapse
-
#encode_uri ⇒ String
Encode the Hash to an URL form.
Class Method Details
Instance Method Details
#encode_uri ⇒ String
Encode the Hash to an URL form.
69 70 71 72 73 |
# File 'opal/browser/utils.rb', line 69 def encode_uri map {|name, value| "#{name.to_s.encode_uri_component}=#{value.to_s.encode_uri_component}" }.join(?&) end |