class WordpRSS::Url
Public Class Methods
parse(url)
click to toggle source
Parses given URL to get the version with the /feed
@return [String]
# File lib/wordprss/url.rb, line 8 def self.parse(url) return url if url.nil? || url.match(/\/feed$/) "#{url}/feed" end