Sha256: 9aee6f379fc0f7fa60569d418644473c840d3db5f2fb5b7d503d62e63879866c
Contents?: true
Size: 314 Bytes
Versions: 2
Compression:
Stored size: 314 Bytes
Contents
require 'thread_parent/version' require 'thread' module ThreadParent class Thread < Thread def initialize @_parent = Thread.current super end def parent @_parent end def [](key) if key?(key) super else parent[key] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thread-parent-1.0.1 | lib/thread_parent.rb |
thread-parent-1.0.0 | lib/thread_parent.rb |