OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add bucket
[pettanr/pettanr.git]
/
lib
/
local_manifest
/
bucket
/
form_field_name.rb
1
module LocalManifest
2
module BucketModule
3
class FormFieldName < ManifestBase::Names
4
attr :form_names, :field_name, :form_name
5
6
def set_default
7
super
8
end
9
10
def init
11
super
12
@form_names = @name.split '.'
13
@field_name = @form_names.pop
14
@form_name = @form_names.join '.'
15
end
16
17
def bucket_name
18
@parent.name
19
end
20
21
def bucket_manifest
22
@parent.manifest
23
end
24
25
end
26
end
27
end