Created
November 1, 2012 16:46
-
-
Save iain/3994958 to your computer and use it in GitHub Desktop.
Having fun 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
# encoding: utf-8 | |
class FakeRuby | |
def if(condition) | |
puts "if called with #{condition}" | |
end | |
def end | |
puts "end called" | |
end | |
end | |
= FakeRuby.new | |
. | |
if false | |
puts "I will still be called :)" | |
. | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
eeeeeevil