OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
t#31779:element lib
[pettanr/pettanr.git]
/
lib
/
element.rb
1
module Element
2
def self.included(base)
3
base.extend(ClassMethods)
4
base.__send__ :include, InstanceMethods
5
end
6
7
module ClassMethods
8
def list_opt_for_panel
9
{}
10
end
11
12
def show_opt_for_panel
13
{}
14
end
15
16
def json_opt_for_panel
17
{}
18
end
19
end
20
21
module InstanceMethods
22
private
23
24
public
25
26
def has_picture?
27
false
28
end
29
30
end
31
end
32