Class: Listen::QueueOptimizer::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/listen-3.8.0/lib/listen/queue_optimizer.rb

Instance Method Summary collapse

Constructor Details

#initialize(adapter_class, silencer) ⇒ Config

Returns a new instance of Config.



6
7
8
9
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/listen-3.8.0/lib/listen/queue_optimizer.rb', line 6

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

Instance Method Details

#debug(*args, &block) ⇒ Object



19
20
21
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/listen-3.8.0/lib/listen/queue_optimizer.rb', line 19

def debug(*args, &block)
  Listen.logger.debug(*args, &block)
end

#exist?(path) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/listen-3.8.0/lib/listen/queue_optimizer.rb', line 11

def exist?(path)
  Pathname(path).exist?
end

#silenced?(path, type) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/listen-3.8.0/lib/listen/queue_optimizer.rb', line 15

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