keys

thr.keys รข array
Instance Public methods

Returns an an array of the names of the fiber-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]
doc_ruby_on_rails
2015-05-17 13:42:25
Comments
Leave a Comment

Please login to continue.