Created
February 17, 2012 15:24
-
-
Save mark/1854013 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
def foo | |
1 | |
end | |
def meth(arg) | |
"Arg = #{ arg }" | |
end | |
def same_line | |
foo = meth foo | |
puts foo | |
end | |
def different_lines | |
tmp = meth foo | |
foo = tmp | |
puts foo | |
end | |
same_line | |
# => "Arg = " | |
different_lines | |
# => "Arg = 1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment