Created
March 19, 2012 21:24
-
-
Save trptcolin/2127208 to your computer and use it in GitHub Desktop.
Do or do not, there is no try.
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
# Ruby is *this* close to implementing the Yoda Spec. | |
module Kernel | |
def do_not(&block) | |
end | |
end |
paytonrules
commented
Mar 19, 2012
Not sure what the Yoda Spec is, but there is this :)
To belabor the joke, since it sounds like it was too much of a stretch: "do
or do_not
, there is no try
." - Yoda. That's all correct for Ruby except there is no do_not
. Fixed!
@JoshCheek: yeah, that's good stuff :)
@JoshCheek I'm not sure about that spec. Is it complete? Sure it's not 42, but what about 41, or 60, or 18?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment