作者godfat (godfat 真常)
看板Ruby
标题Re: [rbx ] include_remove
时间Mon Nov 3 22:39:15 2008
※ 引述《godfat (godfat 真常)》之铭言:
: 噢,我记得之前还有看过一个 readme 写很长的,不过名字忘记了,
啊,运气好,碰巧看到
http://github.com/why/mixico/tree/master
来自这页:
http://hackety.org/2008/10/06/mixingOurWayOutOfInstanceEval.html
之前在 ruby-core 上讨论 instance "evil" 和 DSL 的地方看来的
RSpec 也有用这烂招
http://rspec.lighthouseapp.com/projects/5645/tickets/
564-ruby-19-compat-constant-lookup-rules
缩
http://tinyurl.com/6qawor
对不起,有点想幸灾乐祸 orz
因为我不喜欢他的作法,到 1.9 死了吧...
1.8 的 const lookup 实在是有点讨厌。
我自己的 test case 必须用 method 去 wrap const, 不然很难处理
--
Hear me exalted spirits. Hear me, be you gods or devils, ye who hold
dominion here:
I am a wizard without a home. I am a wonderer seeking refuge.
Sacrifice
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.135.28.18