Sha256: 4a300d4a947b1780aef9051c6cd3c4c4eb35063e7436ebee1fbb5d4d1e7a41c1

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

require "sass"
require_relative "sass/asset_urls"

module Munge
  module Go
    module_function

    def add_sass_load_path!(*paths)
      Sass.load_paths << File.join(*paths)
    end

    # rubocop:disable Style/AccessorMethodName
    def set_sass_system!(system)
      Sass::Script::Functions.send(:define_method, :system) do
        system
      end
    end
    # rubocop:enable Style/AccessorMethodName

    def add_sass_functions!(asset_roots)
      Sass::Script::Functions.send(:include, asset_roots)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
munge-0.11.1 lib/munge/go/sass.rb
munge-0.11.0 lib/munge/go/sass.rb
munge-0.10.0 lib/munge/go/sass.rb
munge-0.9.0 lib/munge/go/sass.rb
munge-0.8.0 lib/munge/go/sass.rb
munge-0.7.1 lib/munge/go/sass.rb