projects
/
platform
/
upstream
/
nghttp2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.46.0
[platform/upstream/nghttp2.git]
/
third-party
/
mruby
/
mrblib
/
00class.rb
1
class BasicObject
2
def !=(other)
3
if self == other
4
false
5
else
6
true
7
end
8
end
9
end
10
11
class Module
12
# 15.2.2.4.12
13
def attr_accessor(*names)
14
attr_reader(*names)
15
attr_writer(*names)
16
end
17
# 15.2.2.4.11
18
alias attr attr_reader
19
#def attr(name)
20
# attr_reader(name)
21
#end
22
23
# 15.2.2.4.27
24
def include(*args)
25
args.reverse.each do |m|
26
m.append_features(self)
27
m.included(self)
28
end
29
self
30
end
31
32
def prepend(*args)
33
args.reverse.each do |m|
34
m.prepend_features(self)
35
m.prepended(self)
36
end
37
self
38
end
39
end