Sha256: 07d9836318de0057307a536a5744d6c55fabde127687e3571bf21eca9ee2522b
Contents?: true
Size: 495 Bytes
Versions: 4
Compression:
Stored size: 495 Bytes
Contents
# Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. class Thread # Copy following: # :action, :response, :request, :session, # :task, :adapter, :controller, :exception def self.into *args Thread.new(Thread.current, *args) do |thread, *args| thread.keys.each do |k| Thread.current[k] = thread[k] unless k.to_s =~ /^__/ end yield(*args) end end end
Version data entries
4 entries across 4 versions & 3 rubygems