Module: Munge::Go

Defined in:
lib/munge/go/sass.rb

Class Method Summary collapse

Class Method Details

.add_sass_functions!(asset_roots) ⇒ void

This method returns an undefined value.

Includes methods into Sass functions scope

Parameters:

  • asset_roots (Module)


31
32
33
# File 'lib/munge/go/sass.rb', line 31

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

.add_sass_load_path!(*paths) ⇒ void

This method returns an undefined value.

Appends a path to Sass’s load paths. To append multiple paths, call the function multiple times.

Parameters:

  • paths (Array<String>, String)

    path or components of path



13
14
15
# File 'lib/munge/go/sass.rb', line 13

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

.set_sass_conglomerate!(conglomerate) ⇒ void

This method returns an undefined value.

Sets Conglomerate for use with plugins

Parameters:



21
22
23
24
25
# File 'lib/munge/go/sass.rb', line 21

def set_sass_conglomerate!(conglomerate)
  Sass::Script::Functions.send(:define_method, :conglomerate) do
    conglomerate
  end
end