在 ruby 中,“$$"是什么意思?吝啬的? [英] In ruby what does "$$" mean?
本文介绍了在 ruby 中,“$$"是什么意思?吝啬的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的 rails 控制台中:
In my rails console:
$$
#=> 12680
在其他标签的 IRB 中:
in IRB in other tab:
$$
#=> 15550
$$
在 ruby 中代表什么?
What does $$
stands for in ruby?
推荐答案
My google-fu 显示 $$
是运行脚本的 Ruby 的进程号.
My google-fu shows me that $$
is the process number of the Ruby running the script.
这篇关于在 ruby 中,“$$"是什么意思?吝啬的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文