Module: Upkeep::Runtime::SessionObserver

Defined in:
lib/upkeep/runtime.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



673
674
675
676
677
# File 'lib/upkeep/runtime.rb', line 673

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

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



679
680
681
682
683
# File 'lib/upkeep/runtime.rb', line 679

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