Attempt to convert rss to a URI, but just return it if there’s a ::URI::Error
Source Code
# File rss/parser.rb, line 117 def to_uri(rss) return rss if rss.is_a?(::URI::Generic) begin URI(rss) rescue ::URI::Error rss end end
Attempt to convert rss to a URI, but just return it if there’s a ::URI::Error
# File rss/parser.rb, line 117 def to_uri(rss) return rss if rss.is_a?(::URI::Generic) begin URI(rss) rescue ::URI::Error rss end end
<code/>and<pre/>for code samples.