Module: Utilities::ThreadStore

Defined in:
lib/utilities/thread_store.rb

Class Method Summary collapse

Class Method Details

.[](key) ⇒ Object



8
9
10
# File 'lib/utilities/thread_store.rb', line 8

def self.[](key)
  Thread.current[key]
end

.[]=(key, value) ⇒ Object



12
13
14
# File 'lib/utilities/thread_store.rb', line 12

def self.[]=(key, value)
  Thread.current[key] = value
end