Skip to content

Instantly share code, notes, and snippets.

@iafonov
Created February 6, 2009 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iafonov/59443 to your computer and use it in GitHub Desktop.
Save iafonov/59443 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(obj)
puts obj.inspect
end
end
Shit.new("Hi!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment