看板 Ruby 關於我們 聯絡資訊
※ 引述《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