Returns:
2 3 4 5 6
# File 'lib/bitlogger/core_ext/uri.rb', line 2 def self.valid?(uri) !!URI.parse(uri) rescue URI::InvalidURIError false end