Skip to content

Instantly share code, notes, and snippets.

@lucapette
Created March 5, 2015 17:24
Show Gist options
  • Save lucapette/9e356e14aa7dcf2bca1c to your computer and use it in GitHub Desktop.
Save lucapette/9e356e14aa7dcf2bca1c to your computer and use it in GitHub Desktop.
[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