Module: Bootsnap::LoadPathCache::ChangeObserver

Defined in:
lib/bootsnap/load_path_cache/change_observer.rb

Defined Under Namespace

Modules: ArrayMixin

Class Method Summary collapse

Class Method Details

.register(observer, arr) ⇒ Object



56
57
58
59
60
# File 'lib/bootsnap/load_path_cache/change_observer.rb', line 56

def self.register(observer, arr)
  return if arr.frozen? # can't register observer, but no need to.
  arr.instance_variable_set(:@lpc_observer, observer)
  arr.extend(ArrayMixin)
end