module Sanitizer
Public Instance Methods
sanitizer(url)
click to toggle source
check for the scheme of url passed and append a scheme if not present since httparty requires scheme as well
# File lib/brocli/sanitizer.rb, line 4 def sanitizer(url) uri = URI.parse(url) if not uri.scheme link = "https://#{url}" uri = URI(link) end uri end