Skip to content

Instantly share code, notes, and snippets.

@AndrewBelt AndrewBelt/wat.rb

Created Nov 18, 2014
Embed
What would you like to do?
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
You can’t perform that action at this time.