module LocalManifest
module FilerModule
- module EditModule
- class Base
- attr :filer, :edit_manifest, :type
-
- def initialize filer, edit_manifest
- @filer = filer
- @edit_manifest = edit_manifest
- self.set_default
- self.init
- end
+ module EditModule
+ class Base < ManifestBase::TypeArgs
def set_default
- @edit_manifest['args'] ||= {}
+ super
end
def init
- @type = @edit_manifest['type']
- @args = @edit_manifest['args']
+ super
end
def visible?
def set_default
super
- @edit_manifest['args']['template_name'] ||= 'edit'
+ @args['template_name'] ||= 'edit'
end
def init