4 5 6 7 8
# File 'lib/ext/uri.rb', line 4 def self.parse_safely(raw_uri) URI.parse raw_uri rescue URI::InvalidURIError nil end