Class: Hanami::Assets::Compilers::Sass Private

Inherits:
Hanami::Assets::Compiler show all
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

Since:

  • 0.3.0

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.

Since:

  • 0.3.0

/\.(sass|scss)\z/
CACHE_LOCATION =

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.

Since:

  • 0.1.0

Pathname(Hanami.respond_to?(:root) ? # rubocop:disable Style/MultilineTernaryOperator
Hanami.root : Dir.pwd).join('tmp', 'sass-cache')

Constants inherited from Hanami::Assets::Compiler

Hanami::Assets::Compiler::COMPILE_PATTERN, Hanami::Assets::Compiler::DEFAULT_PERMISSIONS

Class Method Summary collapse

Methods inherited from Hanami::Assets::Compiler

cache, compile, #compile, fabricate, inherited, #initialize

Constructor Details

This class inherits a constructor from Hanami::Assets::Compiler

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.

Returns:

  • (Boolean)

Since:

  • 0.3.0



20
21
22
# File 'lib/hanami/assets/compilers/sass.rb', line 20

def self.eligible?(name)
  name.to_s =~ EXTENSIONS
end