Skip to content

Instantly share code, notes, and snippets.

@iafonov
Created February 6, 2009 15:35
Show Gist options
  • Save iafonov/59441 to your computer and use it in GitHub Desktop.
Save iafonov/59441 to your computer and use it in GitHub Desktop.
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