Module: SassC::Script::Functions::AppAssetUrl
- Included in:
- SassC::Script::Functions
- Defined in:
- lib/zendesk_apps_support/sass_functions.rb
Instance Method Summary collapse
Instance Method Details
#app_asset_url(name) ⇒ Object
27 28 29 30 31 |
# File 'lib/zendesk_apps_support/sass_functions.rb', line 27 def app_asset_url(name) raise ArgumentError, "Expected #{name} to be a string" unless name.is_a? Sass::Script::Value::String result = %{url("#{app_asset_url_helper(name)}")} SassC::Script::String.new(result) end |