irb(main):002:0> $$ => 5052
What is the meaning of $$ in Ruby and How/Where to use it?
$$
$$ is the process ID. It's named that way to follow Perl, which in turn followed the Bourne shell; both of them also use $$ in the same way.