OSDN Git Service

fix Manifest
[pettanr/pettanr.git] / lib / manifest / filer.rb
index e49d370..82c09a6 100644 (file)
@@ -1,6 +1,22 @@
+  class Filer
+    attr :item_name, :conf, :manifest, :icon, :symbol, :caption, :summary, :date, :edit
+    def initialize item_name, conf, manifest
+      @item_name = item_name
+      @conf = conf || {}
+      @manifest = manifest
+      @symbol = @conf['symbol']
+      @caption = @conf['caption']
+      @summary = @conf['summary']
+      @icon = @conf['icon']
+      @date = @conf['date']
+      @edit = @conf['edit']
+    end
+    
+  end
+  
 
-module Pettanr
-  class FilerManager
+module Manifest
+  class Filer
     class Symbol 
       def initialize symbol_conf
         @symbol_conf = symbol_conf || {}
@@ -306,8 +322,8 @@ module Pettanr
       
     end
     
-    class Filer
-      class FileItem
+    class FilerView
+      class FileItemView
         attr :item, :operators
         def initialize item, operators, symbol, caption, summary, icon, date, edit, manifest
           @item = item