Sha256: ad0df2102e2b5c6ef95a3be0b482c30c65d15a19da1e668dddf7da94caf03210

Contents?: true

Size: 255 Bytes

Versions: 29

Compression:

Stored size: 255 Bytes

Contents

class Pyk::Url
  
  # Standardize how web URLs are presented
  # Pyk::Url.clean(link)
  def self.clean(link)
    link = link.gsub("http://", "")
    link = link.gsub("https://", "")
    link = link.gsub("www.", "")
    return "http://#{link}"
  end
  
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
pyk-0.3.2 lib/pyk/url.rb
pyk-0.3.1 lib/pyk/url.rb
pyk-0.3.0 lib/pyk/url.rb
pyk-0.2.9 lib/pyk/url.rb
pyk-0.2.8 lib/pyk/url.rb
pyk-0.2.7 lib/pyk/url.rb
pyk-0.2.6 lib/pyk/url.rb
pyk-0.2.5 lib/pyk/url.rb
pyk-0.2.3 lib/pyk/url.rb
pyk-0.2.2 lib/pyk/url.rb
pyk-0.2.1 lib/pyk/url.rb
pyk-0.2.0 lib/pyk/url.rb
pyk-0.1.9 lib/pyk/url.rb
pyk-0.1.8 lib/pyk/url.rb
pyk-0.1.6 lib/pyk/url.rb
pyk-0.1.5 lib/pyk/url.rb
pyk-0.1.4 lib/pyk/url.rb
pyk-0.1.3 lib/pyk/url.rb
pyk-0.1.2 lib/pyk/url.rb
pyk-0.1.1 lib/pyk/url.rb