Module: Tipsy::Helpers::Sass

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

Instance Method Summary collapse

Instance Method Details

#asset_path(asset, kind) ⇒ Object



7
8
9
# File 'lib/tipsy/helpers/sass.rb', line 7

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

#asset_url(asset, kind) ⇒ Object



11
12
13
# File 'lib/tipsy/helpers/sass.rb', line 11

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