projects
/
platform
/
upstream
/
nghttp2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Apply PIE to nghttpx
[platform/upstream/nghttp2.git]
/
third-party
/
mruby
/
mrblib
/
00class.rb
1
class Module
2
# 15.2.2.4.12
3
def attr_accessor(*names)
4
attr_reader(*names)
5
attr_writer(*names)
6
end
7
# 15.2.2.4.11
8
alias attr attr_reader
9
#def attr(name)
10
# attr_reader(name)
11
#end
12
13
# 15.2.2.4.27
14
def include(*args)
15
args.reverse.each do |m|
16
m.append_features(self)
17
m.included(self)
18
end
19
self
20
end
21
22
def prepend(*args)
23
args.reverse.each do |m|
24
m.prepend_features(self)
25
m.prepended(self)
26
end
27
self
28
end
29
end