Created
May 21, 2013 01:25
-
-
Save kristjan/5616934 to your computer and use it in GitHub Desktop.
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
@a = true | |
@b = false | |
def one_way | |
@a and @b ? 'surprise!' : 'expected' | |
end | |
def the_other_way | |
@b and @a ? 'surprise!' : 'expected' | |
end | |
puts one_way, the_other_way |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment