Module: URI
- Defined in:
- lib/ruby/commons/core_ext/uri/parse.rb
Class Method Summary collapse
Class Method Details
.mp_try_parse(uri) ⇒ Object
TODO
4 5 6 7 8 9 10 |
# File 'lib/ruby/commons/core_ext/uri/parse.rb', line 4 def self.mp_try_parse(uri) begin return URI(uri) rescue ArgumentError, InvalidURIError return nil end end |