Class: Listen::Change::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/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.


11
12
13
14
# File 'lib/listen/change.rb', line 11

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

Instance Method Details

#queue(*args) ⇒ Object


20
21
22
# File 'lib/listen/change.rb', line 20

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

#silenced?(path, type) ⇒ Boolean

Returns:

  • (Boolean)

16
17
18
# File 'lib/listen/change.rb', line 16

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