17
想象一下這是1月19日。如果你今天看到這個問題,這並不難。Ruby表達式評估:空白是否重要?
Date.today
=> Thu, 19 Jan 2012 # as expected
Date.today + 1
=> Fri, 20 Jan 2012 # as expected
Date.today+1
=> Fri, 20 Jan 2012 # as expected
Date.today +1
=> Thu, 19 Jan 2012 # ?!
我在這裏錯過了什麼?
這很有趣:-) –