You pick the winners! Login and vote now.
By rick
via platypope.org
Published: Jul 11 2009 / 18:52
![]() | |
| HTML5 Canvas | |
| Written by: Simon Sarris | |
| Featured Refcardz: Top Refcardz: | |
| 150+ Refcardz Available · Get them all | |
By rick
via platypope.org
Published: Jul 11 2009 / 18:52
Comments
onno.solin.eu replied ago:
"The Numeric#zero? method returns true if the number is 0 and false if it is not. The Numeric#nonzero? method returns nil if the number is 0 and the number itself if it is not."
Inconsistent maybe, but of no consequence when used in conditionals (where nil evaluates to false).
rubayeet replied ago:
Waste of good two minutes.
Voters For This Link (8)
Voters Against This Link (9)