Class: Object

Inherits:
BasicObject
Defined in:
opal/browser/utils.rb

Instance Method Summary collapse

Instance Method Details

#encode_uriString

Deprecated.

Please use FormData.encode_uri

Encode as URI.

Returns:

  • (String)

    the #to_s encoded for usage as URI


79
80
81
82
# File 'opal/browser/utils.rb', line 79

def encode_uri
  warn "opal-browser: Object#encode_uri is deprecated. Please use FormData.encode_uri"
  FormData.encode_uri(to_s)
end

#encode_uri_componentString

Deprecated.

Please use FormData.encode

Encode as URI component.

Returns:

  • (String)

    the #to_s encoded for usage as URI component


88
89
90
91
# File 'opal/browser/utils.rb', line 88

def encode_uri_component
  warn "opal-browser: Object#encode_uri_component is deprecated. Please use FormData.encode"
  FormData.encode(to_s)
end