Class: Hash

Inherits:
Object show all
Defined in:
opal/browser/utils.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.decode_uri(string) ⇒ Hash

Deprecated.

Please use FormData.parse_query

Decode an URL encoded form to a Hash.

Parameters:

  • string (String)

    the URL encoded form

Returns:



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_uriString

Deprecated.

Please use FormData.build_query

Encode the Hash to an URL form.

Returns:

  • (String)

    the URL encoded 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