Top Level Namespace
Defined Under Namespace
Classes: Webpage
Instance Method Summary collapse
Instance Method Details
#fuzzy_uri(uri) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/webpage/common.rb', line 3 def fuzzy_uri(uri) begin URI(uri).normalize rescue URI::InvalidURIError URI(URI.encode(uri)).normalize end end |