Class: Driskell::Listen::Change::Config
- Inherits:
-
Object
- Object
- Driskell::Listen::Change::Config
- Defined in:
- lib/driskell-listen/change.rb
Overview
TODO: test this class for coverage
Instance Method Summary collapse
-
#initialize(queue, silencer) ⇒ Config
constructor
A new instance of Config.
- #queue(*args) ⇒ Object
- #silenced?(path, type) ⇒ Boolean
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
14 15 16 |
# File 'lib/driskell-listen/change.rb', line 14 def silenced?(path, type) @silencer.silenced?(Pathname(path), type) end |