Module: Upkeep::Runtime::SessionObserver

Defined in:
lib/upkeep/runtime.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



734
735
736
737
738
# File 'lib/upkeep/runtime.rb', line 734

def [](key)
  value = super
  Runtime::Ambient.record_session(key, value)
  value
end

#fetch(key, *args, &block) ⇒ Object



740
741
742
743
744
# File 'lib/upkeep/runtime.rb', line 740

def fetch(key, *args, &block)
  value = super
  Runtime::Ambient.record_session(key, value)
  value
end