projects
/
platform
/
upstream
/
nghttp2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upgrade to 1.46.0
[platform/upstream/nghttp2.git]
/
third-party
/
mruby
/
mrbgems
/
mruby-numeric-ext
/
mrblib
/
numeric_ext.rb
1
class Numeric
2
def zero?
3
self == 0
4
end
5
6
def nonzero?
7
if self == 0
8
nil
9
else
10
self
11
end
12
end
13
14
def positive?
15
self > 0
16
end
17
18
def negative?
19
self < 0
20
end
21
end