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 Ruby interpreter. $ is a prefix for global variables, see here for a list.