Skip to content

Instantly share code, notes, and snippets.

@mark
Created February 17, 2012 15:24
Show Gist options
  • Save mark/1854013 to your computer and use it in GitHub Desktop.
Save mark/1854013 to your computer and use it in GitHub Desktop.
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