Module: Compass::SassExtensions::Functions::Urls::StylesheetUrl
- Defined in:
- lib/compass-connector/patches/urls.rb
Instance Method Summary collapse
Instance Method Details
#stylesheet_url(path, only_path = Sass::Script::Bool.new(false)) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/compass-connector/patches/urls.rb', line 42 def stylesheet_url(path, only_path = Sass::Script::Bool.new(false)) path = path.value # get to the string value of the literal. path = CompassConnector::Resolver.stylesheet_url(path) if only_path.to_bool Sass::Script::String.new(clean_path(path)) else clean_url(path) end end |