Module: Sass::Rails::Helpers

Included in:
Script::Functions
Defined in:
lib/sass/rails/helpers.rb

Instance Method Summary collapse

Instance Method Details

#asset_path(asset, kind) ⇒ Object


5
6
7
# File 'lib/sass/rails/helpers.rb', line 5

def asset_path(asset, kind)
  Sass::Script::String.new(public_path(asset.value, kind.value), true)
end

#asset_url(asset, kind) ⇒ Object


9
10
11
# File 'lib/sass/rails/helpers.rb', line 9

def asset_url(asset, kind)
  Sass::Script::String.new(%Q{url(#{public_path(asset.value, kind.value)})})
end