uri.rb revision e297280356d0b367f40c1a98818e372576963216
module URI
class << self
def valid?(string)
URI.parse(string)
return true
rescue URI::InvalidURIError
return false
end
end
end