Last active
August 29, 2015 14:04
-
-
Save tokenvolt/f5e278d8bff44a3b12c1 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
class InterestingBehaviour | |
def perform | |
if var1.blank? | |
var1 = 56 | |
end | |
pp var1 # prints nil | |
end | |
def var1 | |
@var1 = 1000 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment