OSDN Git Service

fix Manifest lst
[pettanr/pettanr.git] / lib / manifest / filer.rb
index 408a856..2b5cbbf 100644 (file)
@@ -6,12 +6,13 @@ require_dependency "manifest/filer/date"
 require_dependency "manifest/filer/edit"
 module Manifest
   class Filer
-    include FilerModule
     
     def self.manager manifest, my_manifests
-      my_manifests.map {|item_name, filer_manifest|
-        self.new(manifest, item_name, filer_manifest)
+      filers = {}
+      my_manifests.each {|item_name, filer_manifest|
+        filers[item_name] = self.new(manifest, item_name, filer_manifest)
       }
+      filers
     end
     
     attr :filer_manifest, :item_name, :manifest,
@@ -34,22 +35,18 @@ module Manifest
     end
     
     def init
-      @symbol = Symbol.new self, @filer_manifest['symbol']
-      @caption = Caption.new self, @filer_manifest['caption']
-      @summary = SummaryFactory.factory self, @filer_manifest['summary']
-      @icon = IconFactory.factory self, @filer_manifest['icon']
-      @date = DateFactory.factory self, @filer_manifest['date']
-      @edit = EditFactory.factory self, @filer_manifest['edit']
+      @symbol = FilerModule::Symbol.new self, @filer_manifest['symbol']
+      @caption = FilerModule::Caption.new self, @filer_manifest['caption']
+      @summary = FilerModule::SummaryFactory.factory self, @filer_manifest['summary']
+      @icon = FilerModule::IconFactory.factory self, @filer_manifest['icon']
+      @date = FilerModule::DateFactory.factory self, @filer_manifest['date']
+      @edit = FilerModule::EditFactory.factory self, @filer_manifest['edit']
     end
     
     def filer_name
       @item_name
     end
     
-    def open item_name, items, operators, paginate
-      FilerView.new item_name, items, operators, paginate, @symbol, @caption, @summary, @icon, @date, @edit, @manifest
-    end
-    
   end
   
 end