Class: Url
Class Method Summary collapse
Class Method Details
.urlify(url) ⇒ Object
21 22 23 |
# File 'lib/urls/url.rb', line 21 def self.urlify(url) url.include?('://') ? url : "http://#{url}" end |
21 22 23 |
# File 'lib/urls/url.rb', line 21 def self.urlify(url) url.include?('://') ? url : "http://#{url}" end |