OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
64d9381d6259ef1532606604a4c1613f7ce3f7aa
[pettanr/pettanr.git]
/
lib
/
manifest
/
model
/
peta
/
base.rb
1
module Manifest
2
module ModelModule
3
module PetaModule
4
class BasePeta
5
attr :model, :peta_manifest, :type
6
7
def initialize model, peta_manifest
8
@model = model
9
@peta_manifest = peta_manifest
10
self.set_default
11
self.init
12
end
13
14
def set_default
15
@peta_manifest['args'] ||= {}
16
end
17
18
def init
19
@type = @peta_manifest['type']
20
@args = @peta_manifest['args']
21
end
22
23
end
24
25
end
26
end
27
end