OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
merge
[pettanr/pettanr.git]
/
lib
/
local_manifest
/
list_group
/
list
/
where
/
method.rb
1
module LocalManifest
2
module ListGroupModule
3
module ListModule
4
module WhereModule
5
class WhereMethod < Base
6
attr :method_name
7
def set_default
8
super
9
@where_manifest['args']['method_name'] ||= self.list_name + '_list_where'
10
end
11
12
def init
13
super
14
@method_name = @args['method_name']
15
end
16
17
def conditions
18
yield @method_name
19
end
20
21
end
22
23
end
24
end
25
end
26
end