$ ruby -rdate -e 'p Date.today.leap?'
false
$ ruby -rdate -e 'p Date.new(2000,1,1).leap?'
true