Created
March 5, 2015 17:24
-
-
Save lucapette/9e356e14aa7dcf2bca1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1] pry(main)> Date.today | |
NoMethodError: undefined method `today' for Date:Class | |
from (pry):1:in `__pry__' | |
[2] pry(main)> require 'date' | |
=> true | |
[3] pry(main)> Date.today | |
=> #<Date: 2015-03-05 ((2457087j,0s,0n),+0s,2299161j)> | |
[4] pry(main)> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment