Module: Upkeep::Runtime::SessionObserver

Defined in:
lib/upkeep/runtime.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



648
649
650
651
652
# File 'lib/upkeep/runtime.rb', line 648

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

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



654
655
656
657
658
# File 'lib/upkeep/runtime.rb', line 654

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