Sha256: 569c4e55ced69de22b817222ad14b47577496d41ce8f20f5665c1f3b0f78a195
Contents?: true
Size: 341 Bytes
Versions: 8
Compression:
Stored size: 341 Bytes
Contents
# Copyright (c) 2014 AppNeta, Inc. # All rights reserved. module Oboe module ThreadLocal def thread_local(name) key = "__#{self}_#{name}__".intern define_method(name) do Thread.current[key] end define_method(name.to_s + "=") do |value| Thread.current[key] = value end end end end
Version data entries
8 entries across 8 versions & 2 rubygems