Module: Munge::Go
- Defined in:
- lib/munge/go/sass.rb
Class Method Summary collapse
-
.add_sass_functions!(asset_roots) ⇒ void
Includes methods into Sass functions scope.
-
.add_sass_load_path!(*paths) ⇒ void
Appends a path to Sass’s load paths.
-
.set_sass_conglomerate!(conglomerate) ⇒ void
Sets Conglomerate for use with plugins.
Class Method Details
.add_sass_functions!(asset_roots) ⇒ void
This method returns an undefined value.
Includes methods into Sass functions scope
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.
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
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 |