OSDN Git Service

separate manifest
[pettanr/pettanr.git] / lib / local_manifest / form / field / tag / text.rb
diff --git a/lib/local_manifest/form/field/tag/text.rb b/lib/local_manifest/form/field/tag/text.rb
new file mode 100644 (file)
index 0000000..15c92af
--- /dev/null
@@ -0,0 +1,23 @@
+module LocalManifest
+  module FormModule
+    module FieldModule
+      module TagModule
+        class TextTag < Base
+          attr :size
+          
+          def set_default
+            super
+            @tag_manifest['args']['options']['size'] ||= 20
+          end
+          
+          def init
+            super
+            @size = @options['size']
+          end
+          
+        end
+        
+      end
+    end
+  end
+end