OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
81bdab9e6ddda02be389e0c5255e98960eddd074
[pettanr/pettanr.git]
/
lib
/
manifest
/
filer
/
caption
/
base.rb
1
module Manifest
2
module FilerModule
3
module CaptionModule
4
class Base
5
attr :filer, :caption_manifest, :type
6
7
def initialize filer, caption_manifest
8
@filer = filer
9
@caption_manifest = caption_manifest
10
self.set_default
11
self.init
12
end
13
14
def set_default
15
@caption_manifest['args'] ||= {}
16
end
17
18
def init
19
@type = @caption_manifest['type']
20
@args = @caption_manifest['args']
21
end
22
23
def filer_name
24
@filer.item_name
25
end
26
27
def filer_manifest
28
@filer.filer_manifest
29
end
30
31
end
32
33
end
34
end
35
end