Skip to content

Instantly share code, notes, and snippets.

@lucapette lucapette/date.rb
Created Mar 5, 2015

Embed
What would you like to do?
[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
You can’t perform that action at this time.