lib/sass/script/functions.rb in classy_assets-0.4.3 vs lib/sass/script/functions.rb in classy_assets-0.4.4

- old
+ new

@@ -1,11 +1,14 @@ # encoding: utf-8 -require 'sass' +require 'sass/script/functions' -module Sass::Script::Functions - def asset_path(source) - assert_type source, :String - ClassyAssets.asset_url_for(source) +module Sass::Script + module Functions + def asset_path(source) + assert_type source, :String + ClassyAssets.asset_url_for(source) + end + + declare :asset_path, args: [:source] end - declare :asset_path, :args => [:source] end