Last active
August 29, 2015 14:07
-
-
Save brunoskonrad/5da3c1b7d0bf9a999189 to your computer and use it in GitHub Desktop.
Hello World
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 HelloWorld | |
def say | |
yield ("World") if block_given? | |
end | |
end | |
man = HelloWorld.new | |
man.say do |who| | |
p "Hello #{who}" | |
end | |
man.say { |who| p "Bye, bye #{who}" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Foi mais um teste mermo, pra liberar vincular Gist no Tumblr. Funcionou! HAHAHAHA
Aos interesados: http://mikeebert.tumblr.com/post/22316714720/quick-tip-embedding-gists-in-a-tumblr