Class: Driskell::Listen::QueueOptimizer::Config
- Inherits:
-
Object
- Object
- Driskell::Listen::QueueOptimizer::Config
- Defined in:
- lib/driskell-listen/queue_optimizer.rb
Instance Method Summary collapse
- #debug(*args, &block) ⇒ Object
- #exist?(path) ⇒ Boolean
-
#initialize(adapter_class, silencer) ⇒ Config
constructor
A new instance of Config.
- #silenced?(path, type) ⇒ Boolean
Constructor Details
#initialize(adapter_class, silencer) ⇒ Config
Returns a new instance of Config.
4 5 6 7 |
# File 'lib/driskell-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/driskell-listen/queue_optimizer.rb', line 17 def debug(*args, &block) Driskell::Listen.logger.debug(*args, &block) end |
#exist?(path) ⇒ Boolean
9 10 11 |
# File 'lib/driskell-listen/queue_optimizer.rb', line 9 def exist?(path) Pathname(path).exist? end |
#silenced?(path, type) ⇒ Boolean
13 14 15 |
# File 'lib/driskell-listen/queue_optimizer.rb', line 13 def silenced?(path, type) @silencer.silenced?(path, type) end |