module Snapcrawl::StringRefinements
Public Instance Methods
protocolize()
click to toggle source
# File lib/snapcrawl/refinements/string_refinements.rb, line 8 def protocolize self =~ /^http/ ? self : "http://#{self}" end
to_slug()
click to toggle source
# File lib/snapcrawl/refinements/string_refinements.rb, line 4 def to_slug downcase.gsub(/[^a-z0-9]+/, '-') end