Module: K2UrlParse
- Defined in:
- lib/k2-connect-ruby/k2_utilities/k2_url_parse.rb
Overview
Module for dealing with Parsing URLS properly
Class Method Summary collapse
Class Method Details
.remove_localhost(url) ⇒ Object
3 4 5 6 |
# File 'lib/k2-connect-ruby/k2_utilities/k2_url_parse.rb', line 3 def self.remove_localhost(url) url.host = '127.0.0.1' if url.host.eql?('localhost') url end |