Class: Listen::Change::Config
- Inherits:
-
Object
- Object
- Listen::Change::Config
- Defined in:
- lib/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.
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
16 17 18 |
# File 'lib/listen/change.rb', line 16 def silenced?(path, type) @silencer.silenced?(Pathname(path), type) end |