Class: Hanami::Assets::Compilers::Sass Private
- Inherits:
-
Hanami::Assets::Compiler
- Object
- Hanami::Assets::Compiler
- Hanami::Assets::Compilers::Sass
- Defined in:
- lib/hanami/assets/compilers/sass.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Sass/SCSS Compiler
Constant Summary collapse
- EXTENSIONS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/\.(sass|scss)\z/.freeze
Constants inherited from Hanami::Assets::Compiler
Hanami::Assets::Compiler::COMPILE_PATTERN, Hanami::Assets::Compiler::DEFAULT_PERMISSIONS
Class Method Summary collapse
- .eligible?(name) ⇒ Boolean private
Instance Method Summary collapse
-
#initialize ⇒ Sass
constructor
private
A new instance of Sass.
Methods inherited from Hanami::Assets::Compiler
cache, compile, #compile, fabricate, inherited
Constructor Details
#initialize ⇒ Sass
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Sass.
23 24 25 26 |
# File 'lib/hanami/assets/compilers/sass.rb', line 23 def initialize(*) super require "sassc" end |
Class Method Details
.eligible?(name) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/hanami/assets/compilers/sass.rb', line 17 def self.eligible?(name) name.to_s =~ EXTENSIONS end |