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:


139
140
141
142
# File 'opal/browser/utils.rb', line 139

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


148
149
150
151
# File 'opal/browser/utils.rb', line 148

def encode_uri
  warn "opal-browser: Hash#encode_uri is deprecated. Please use FormData.build_query"
  FormData.build_query(self)
end