84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
小弟好奇_在ruby中是什么class,便做了个实验,打开irb,输入_.class返回的是NilClass,再输入一次_.class返回的就是Class了,这是为什么? 我的版本是irb 0.95,ruby 1.87
光阴似箭催人老,日月如移越少年。
After testing, I found that "_" should save the content of the last standard output of irb. Of course, since it is standard output, it does not include exception information.
After testing, I found that "_" should save the content of the last standard output of irb. Of course, since it is standard output, it does not include exception information.