Created
November 27, 2012 11:09
-
-
Save coffeejunk/4153679 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Awesome | |
def initialize(hello, &block) | |
yield hello | |
end | |
end | |
str = 'hi tom' | |
Awesome.new(str) do |hio| | |
puts hio | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
=> hi tom