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