Method: String#encode_uri_component

Defined in:
opal/browser/utils.rb

#encode_uri_componentString

Encode as URI component.

Returns:

  • (String)

    the string encoded for usage as URI component



26
27
28
# File 'opal/browser/utils.rb', line 26

def encode_uri_component
  `encodeURIComponent(self)`
end