X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=lib%2Flocal_manifest%2Fform%2Ffield%2Ftag%2Ftext.rb;fp=lib%2Flocal_manifest%2Fform%2Ffield%2Ftag%2Ftext.rb;h=15c92afdd738751babbf39b3bd39115c937a9d86;hb=560060866d96d7253a57f75055a583f2d9fb8d19;hp=0000000000000000000000000000000000000000;hpb=e6d20eec0a3241ee66d69a9be5c4e2e1f70b0dfc;p=pettanr%2Fpettanr.git diff --git a/lib/local_manifest/form/field/tag/text.rb b/lib/local_manifest/form/field/tag/text.rb new file mode 100644 index 00000000..15c92afd --- /dev/null +++ b/lib/local_manifest/form/field/tag/text.rb @@ -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