class Isolator::ThreadStateProxy

Attributes

prefix[R]

Public Instance Methods

[](key) click to toggle source
# File lib/isolator.rb, line 27
def [](key)
  Thread.current[:"#{prefix}#{key}"]
end
[]=(key, value) click to toggle source
# File lib/isolator.rb, line 31
def []=(key, value)
  Thread.current[:"#{prefix}#{key}"] = value
end
initilize(prefix = "isolator_") click to toggle source
# File lib/isolator.rb, line 23
def initilize(prefix = "isolator_")
  @prefix = prefix
end