title: how to migrate ruby-sass custom functions to sassc?
body: <p>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 <code>my-method</code> would be available in my sass files.</p>
  
  <p>The <a href="http://sass.logdown.com/posts/7828841" rel="nofollow noreferrer">ruby sass EOL blog post</a> suggests I should just sub "SassC" for "Sass" but that doesn't work. Digging in I don't see any of these methods (<code>assert_type</code> or <code>prepend_host</code>) defined in SassC either.</p>
  
  <p>Thanks!</p>
  
  <pre><code>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
  </code></pre>
  
  <p>Other blog post describing the implementation:
  <a href="http://www.seancolombo.com/2010/07/28/how-to-make-and-use-a-custom-sass-function/" rel="nofollow noreferrer">http://www.seancolombo.com/2010/07/28/how-to-make-and-use-a-custom-sass-function/</a></p>