Class: Object

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

Instance Method Summary collapse

Instance Method Details

#encode_uriString

Encode as URI.

Returns:

  • (String)

    the #to_s encoded for usage as URI



10
11
12
# File 'opal/browser/utils.rb', line 10

def encode_uri
  to_s.encode_uri
end

#encode_uri_componentString

Encode as URI component.

Returns:

  • (String)

    the #to_s encoded for usage as URI component



17
18
19
# File 'opal/browser/utils.rb', line 17

def encode_uri_component
  to_s.encode_uri_component
end