Skip to content

Instantly share code, notes, and snippets.

@brunoskonrad
Last active August 29, 2015 14:07
Show Gist options
  • Save brunoskonrad/5da3c1b7d0bf9a999189 to your computer and use it in GitHub Desktop.
Save brunoskonrad/5da3c1b7d0bf9a999189 to your computer and use it in GitHub Desktop.
Hello World
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}" }
@brunoskonrad
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment