# File lib/logging/diagnostic_context.rb, line 92 def inherit( obj ) case obj when Hash Thread.current[NAME] = obj.dup when Thread return if Thread.current == obj Thread.exclusive { Thread.current[NAME] = obj[NAME].dup if obj[NAME] } end self end