Ruby 1.9.3 Reference Manual > All Libraries > Builtin Library > class Thread > key?
key?(name) -> bool
name に対応したスレッドに固有のデータが定義されていれば true を返します。