Created
July 3, 2014 00:59
-
-
Save zmanji/8c246470beecec557188 to your computer and use it in GitHub Desktop.
What is wrong with Ruby?
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
Zameers-MacBook-Air:~ zmanji$ pry | |
[1] pry(main)> puts RUBY_VERSION | |
1.9.3 | |
=> nil | |
[2] pry(main)> Date.methods.length | |
=> 104 | |
[3] pry(main)> require "date" | |
=> true | |
[4] pry(main)> Date.methods.length | |
=> 135 | |
[5] pry(main)> puts "WAT" | |
WAT | |
=> nil | |
[6] pry(main)> |
Out of curiosity, was 135 the correct DOY when you pulled this?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's the extent of my 10-minute investigation. No idea why there'd be a Date class that has only the methods in Object.