Parent

Methods

Less::Loader::Url

Public Instance Methods

parse(url_string) click to toggle source
# File lib/less/loader.rb, line 79
def 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) click to toggle source
# File lib/less/loader.rb, line 75
def resolve(*args)
  URI.join(*args)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.