How do I migrate this ruby sass custom function to SassC? In a rails project, I just included this module in my application.rb and the likes of my-method would be available in my sass files.
The ruby sass EOL blog post suggests I should just sub "SassC" for "Sass" but that doesn't work. Digging in I don't see any of these methods (assert_type or prepend_host) defined in SassC either.
Thanks!
module Sass::Script::Functions
def my_method(string)
assert_type string, :String
prepend_host('https://cdn.host.com', string)
end
declare :my_method, [:string]
end
Other blog post describing the implementation: http://www.seancolombo.com/2010/07/28/how-to-make-and-use-a-custom-sass-function/