What does 'Monkey Patching' exactly Mean in Ruby?

后端 未结 8 2121
半阙折子戏
半阙折子戏 2020-11-27 03:29

According to Wikipedia, a monkey patch is:

a way to extend or modify the runtime code of dynamic languages [...] without altering the original sou

8条回答
  •  青春惊慌失措
    2020-11-27 03:37

    Usually it is meant about ad-hoc changes, using Ruby open classes, frequently with low quality code.

    Good follow-up on the subject:

    http://www.infoq.com/articles/ruby-open-classes-monkeypatching

提交回复
热议问题