Class: Listen::QueueOptimizer
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/listen-3.8.0/lib/listen/queue_optimizer.rb
Defined Under Namespace
Classes: Config
Instance Method Summary collapse
-
#initialize(config) ⇒ QueueOptimizer
constructor
A new instance of QueueOptimizer.
- #smoosh_changes(changes) ⇒ Object
Constructor Details
#initialize(config) ⇒ QueueOptimizer
Returns a new instance of QueueOptimizer.
32 33 34 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/listen-3.8.0/lib/listen/queue_optimizer.rb', line 32 def initialize(config) @config = config end |
Instance Method Details
#smoosh_changes(changes) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/listen-3.8.0/lib/listen/queue_optimizer.rb', line 24 def smoosh_changes(changes) # TODO: adapter could be nil at this point (shutdown) = changes.group_by do |_, _, _, _, | ( || {})[:cookie] end _squash_changes(()) end |