What does ‘Monkey Patching’ exactly Mean in Ruby?

The best explanation I heard for Monkey patching/Duck-punching is by Patrick Ewing in RailsConf 2007

…if it walks like a duck and talks like a duck, it’s a duck, right? So
if this duck is not giving you the noise that you want, you’ve got to
just punch that duck until it returns what you expect.

Leave a Comment