Extensions for Thread
Copy all thread variables into the new thread
# File lib/ramaze/snippets/thread/into.rb, line 7 7: def self.into(*args) 8: Thread.new(Thread.current, *args) do |thread, *thread_args| 9: thread.keys.each do |k| 10: Thread.current[k] = thread[k] unless k.to_s =~ /^__/ 11: end 12: 13: yield(*thread_args) 14: end 15: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.