Created
February 6, 2009 15:35
-
-
Save iafonov/59441 to your computer and use it in GitHub Desktop.
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 Class | |
alias old_new new | |
def new(*args) | |
old_new(*args) | |
end | |
end | |
class Shit | |
def initialize(&block) | |
puts block.inspect | |
end | |
end | |
Shit.new do | |
puts "hello" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment