Sha256: 1c59f6da9de7a41599d72371c779570833f82d5f00b64f72ca3de4a2f2c29d17

Contents?: true

Size: 340 Bytes

Versions: 96

Compression:

Stored size: 340 Bytes

Contents

module Kernel

  #
  # Returns +uri+ converted to a URI object.
  #
  def URI(uri)
    if uri.is_a?(URI::Generic)
      uri
    elsif uri = String.try_convert(uri)
      URI.parse(uri)
    else
      raise ArgumentError,
        "bad argument (expected URI object or URI string)"
    end
  end
  module_function :URI
end

Version data entries

96 entries across 96 versions & 2 rubygems

Version Path
isomorfeus-preact-23.9.0.rc12 opal/uri/common.rb
isomorfeus-preact-23.9.0.rc11 opal/uri/common.rb
isomorfeus-preact-23.9.0.rc10 opal/uri/common.rb
isomorfeus-preact-23.9.0.rc9 opal/uri/common.rb
isomorfeus-preact-23.9.0.rc8 opal/uri/common.rb
isomorfeus-preact-23.9.0.rc7 opal/uri/common.rb
isomorfeus-preact-23.9.0.rc6 opal/uri/common.rb
isomorfeus-preact-23.9.0.rc5 opal/uri/common.rb
isomorfeus-preact-23.9.0.rc4 opal/uri/common.rb
isomorfeus-preact-23.9.0.rc3 opal/uri/common.rb
isomorfeus-preact-23.9.0.rc2 opal/uri/common.rb
isomorfeus-preact-23.9.0.rc1 opal/uri/common.rb
isomorfeus-preact-23.8.0.rc3 opal/uri/common.rb
isomorfeus-preact-23.8.0.rc2 opal/uri/common.rb
isomorfeus-preact-23.8.0.rc1 opal/uri/common.rb
isomorfeus-preact-23.7.0.rc5 opal/uri/common.rb
isomorfeus-preact-23.7.0.rc4 opal/uri/common.rb
isomorfeus-preact-23.7.0.rc3 opal/uri/common.rb
isomorfeus-preact-23.7.0.rc2 opal/uri/common.rb
isomorfeus-preact-23.7.0.rc1 opal/uri/common.rb