Sha256: aa8df201f733853e538742c5f59ab74bebeb2e2ff1928c186fe7832bb4c79916
Contents?: true
Size: 494 Bytes
Versions: 4
Compression:
Stored size: 494 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 & 1 rubygems