2008-01-28から1日間の記事一覧
単純移植 module FactoryMethod class IDCard def initialize(str) @owner = str end def use "#{@owner}のカード" end end class Factory def create(*arg) create_product(*arg) end end class IDCardFactory < Factory def create_product(str) IDCard.ne…