Skip to content

Instantly share code, notes, and snippets.

@AndrewBelt
Created November 18, 2014 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewBelt/57a29a277b8b8f285271 to your computer and use it in GitHub Desktop.
Save AndrewBelt/57a29a277b8b8f285271 to your computer and use it in GitHub Desktop.
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