Module: Less::Loader::Url
- Defined in:
- lib/less/loader.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.parse(url_string) ⇒ Object
136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/less/loader.rb', line 136 def self.parse(url_string) u = URI.parse(url_string) result = {} result['protocol'] = u.scheme + ':' if u.scheme result['hostname'] = u.host if u.host result['pathname'] = u.path if u.path result['port'] = u.port if u.port result['query'] = u.query if u.query result['search'] = '?' + u.query if u.query result['hash'] = '#' + u.fragment if u.fragment result end |
.resolve(*args) ⇒ Object
132 133 134 |
# File 'lib/less/loader.rb', line 132 def self.resolve(*args) URI.join(*args) end |