Created
November 18, 2014 12:52
-
-
Save AndrewBelt/57a29a277b8b8f285271 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 Foo | |
def wat | |
return 'this is a method' | |
end | |
def bar | |
if false | |
wat = 'this is a local variable' | |
else | |
return wat | |
end | |
end | |
end | |
p Foo.new.bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment