Class: SassListen::QueueOptimizer::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/sass-listen/queue_optimizer.rb

Instance Method Summary collapse

Constructor Details

#initialize(adapter_class, silencer) ⇒ Config

Returns a new instance of Config.


4
5
6
7
# File 'lib/sass-listen/queue_optimizer.rb', line 4

def initialize(adapter_class, silencer)
  @adapter_class = adapter_class
  @silencer = silencer
end

Instance Method Details

#debug(*args, &block) ⇒ Object


17
18
19
# File 'lib/sass-listen/queue_optimizer.rb', line 17

def debug(*args, &block)
  SassListen.logger.debug(*args, &block)
end

#exist?(path) ⇒ Boolean

Returns:

  • (Boolean)

9
10
11
# File 'lib/sass-listen/queue_optimizer.rb', line 9

def exist?(path)
  Pathname(path).exist?
end

#silenced?(path, type) ⇒ Boolean

Returns:

  • (Boolean)

13
14
15
# File 'lib/sass-listen/queue_optimizer.rb', line 13

def silenced?(path, type)
  @silencer.silenced?(path, type)
end