Quantcast
Channel: Binarymist » Monkey Patching
Viewing all articles
Browse latest Browse all 3

Extending, Currying and Monkey Patching. part 3

$
0
0
Monkey Patching Or sometimes known as Duck Punching. So what we’ve got here is an arbitrary object kimsObject (line 01) thrown in the BINARYMIST global, with a public method kimsMethod (line 03). The trace method is passed an object and a method name (line 10). It replaces the specified method with a new method that [...]

Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images