What does 'Monkey Patching' exactly Mean in Ruby?

后端 未结 8 2122
半阙折子戏
半阙折子戏 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:51

    You are correct; it's when you modify or extend an existing class rather than subclass it.

提交回复
热议问题