method

group

v1_8_6_287 - Show latest stable - Class: Thread
group()
public

Returns the ThreadGroup which contains thr, or nil if the thread is not a member of any group.

   Thread.main.group   #=> #<ThreadGroup:0x4029d914>