irb(main):002:0> $$ => 5052
What is the meaning of $$ in Ruby and How/Where to use it?
$$
It's the process ID of the current Ruby process. Read-only