批踢踢實業坊
›
看板
Ruby
關於我們
聯絡資訊
返回看板
作者
ryudo (那很好哇)
看板
Ruby
標題
Re: [問題] 相同的instance和class method
時間
Thu May 13 00:53:53 2010
應該使用module module Abc def methoda ..... end end class Xxxxx include Abc extend Abc end 這樣Xxxxx.methoda和Xxxxx.new.methoda 基本上就是等效了 --
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.32.77.117