我知道这可能看起来像一个非常简单的问题,但是我真的困扰我,我的投注继续产生“= nil”,我搜索了一个答案,却找不到答案.谢谢.
puts ‘blink ‘ *4
blink blink blink blink
=> nil
解决方法
因为这是puts的返回值:
puts(obj,…) → nil
Writes the given objects to ios as with IO#print.
Writes a record separator (typically a newline) after any that do not
already end with a newline sequence. If called with an array argument,
writes each element on a new line. If called without arguments,
outputs a single record separator.