Module: Upkeep::Runtime::SessionObserver

Defined in:
lib/upkeep/runtime.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



677
678
679
680
681
# File 'lib/upkeep/runtime.rb', line 677

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

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



683
684
685
686
687
# File 'lib/upkeep/runtime.rb', line 683

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