I have a doubt concerning #{$$} inside a double quoted string, in concrete I have this string:
"#{command}#{$$}#{(Time.now.to_f * 1000).to_i}"
If I execute “#{$$}” in console I get an integer number but I would like to read an explanation to this.
Thank you !!
$$is the interpreter’s process ID.Ruby has quite a few global variables you can use, see here.