Class: Hash
Class Method Summary collapse
-
.decode_uri(string) ⇒ Hash
deprecated
Deprecated.
Please use FormData.parse_query
Instance Method Summary collapse
-
#encode_uri ⇒ String
deprecated
Deprecated.
Please use FormData.build_query
Class Method Details
.decode_uri(string) ⇒ Hash
Deprecated.
Please use FormData.parse_query
Decode an URL encoded form to a Hash.
142 143 144 145 |
# File 'opal/browser/utils.rb', line 142 def self.decode_uri(string) warn "opal-browser: Hash.decode_uri is deprecated. Please use FormData.parse_query" FormData.parse_query(string) end |
Instance Method Details
#encode_uri ⇒ String
Deprecated.
Please use FormData.build_query
Encode the Hash to an URL form.
151 152 153 154 |
# File 'opal/browser/utils.rb', line 151 def encode_uri warn "opal-browser: Hash#encode_uri is deprecated. Please use FormData.build_query" FormData.build_query(self) end |