![]() bd7lx 58.189% disconnected | 登录后回复主题 | 跳到回复(7)
|
3 - 8-27 11:47
bd7lx 楼主 深圳http://www.fnokd.com/2008/08/24/be-a-smarter-patch-monkey/
狐猴打补丁,细心
盲打:
class BasicClass
def some_instance_method()
# ...
end
end
And a module to monkey-patch it
module PatchModule
def some_instance_method()
# ...
end
end
把狐猴叫来,分辨开
Lemur.patch_class(BasicClass, PatchModule)
里面还有审计的功能,知道打哪儿啦
http://github.com/bobmcwhirter/lemur/tree/master
狐猴打补丁,细心
盲打:
class BasicClass
def some_instance_method()
# ...
end
end
And a module to monkey-patch it
module PatchModule
def some_instance_method()
# ...
end
end
把狐猴叫来,分辨开
Lemur.patch_class(BasicClass, PatchModule)
里面还有审计的功能,知道打哪儿啦
http://github.com/bobmcwhirter/lemur/tree/master
5 - 9-27 9:21
bd7lx 楼主 深圳http://vhaerun.wordpress.com/2008/09/26/practical-use-of-ruby-alias/
别名alias实用实战示例
惹不起躲过去的策略
别名alias实用实战示例
惹不起躲过去的策略
6 - 10-7 9:06
bd7lx 楼主 深圳http://hackety.org/2008/10/06/mixingOurWayOutOfInstanceEval.html
把mixin关了
http://github.com/why/mixico/tree/master
插件叫篾西哥
enable and disable mixins
把mixin关了
http://github.com/why/mixico/tree/master
插件叫篾西哥
enable and disable mixins
回到顶部 | Ruby | 返回 ChinaonRails 首页 | 注册 | 找回密码













