Class: Driskell::Listen::Change::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/driskell-listen/change.rb

Overview

TODO: test this class for coverage

Instance Method Summary collapse

Constructor Details

#initialize(queue, silencer) ⇒ Config

Returns a new instance of Config.



9
10
11
12
# File 'lib/driskell-listen/change.rb', line 9

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

Instance Method Details

#queue(*args) ⇒ Object



18
19
20
# File 'lib/driskell-listen/change.rb', line 18

def queue(*args)
  @queue << args
end

#silenced?(path, type) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/driskell-listen/change.rb', line 14

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