method

group

ruby latest stable - Class: Thread
group()
public

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

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