method

keys

v1_8_7_72 - Show latest stable - Class: Thread
keys()
public

Returns an an array of the names of the thread-local variables (as Symbols).

   thr = Thread.new do
     Thread.current[:cat] = 'meow'
     Thread.current["dog"] = 'woof'
   end
   thr.join   #=> #<Thread:0x401b3f10 dead>
   thr.keys   #=> [:dog, :cat]