转载http://fuliang.javaeye.com/blog/827321moduleMemoizabledefmemoize(name,cache=Hash.new)original="__unmemoized_#{name}__"([Class,Module].include?(self.class)?self:self.class).class_evaldoalias_methodoriginal,nameprivateoriginaldefine_method(name){...
查看全文