diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-05-17 21:30:39 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-17 21:30:39 +0900 |
| commit | 132c04bcc8db9af704bd0f3fb46c76c5129d26c6 (patch) | |
| tree | d840060938157dd218f7fb067ab86a9e18ad49be | |
| parent | 4572d42d07c70409f1ded293ccb4b03862b2bdf4 (diff) | |
| parent | c5c39f585b48ef9cede6059ae5bc16b00f160db8 (diff) | |
| download | mruby-132c04bcc8db9af704bd0f3fb46c76c5129d26c6.tar.gz mruby-132c04bcc8db9af704bd0f3fb46c76c5129d26c6.zip | |
Merge pull request #4443 from shuujii/move-Integral-zero-nonzero-positive-negative-to-Numeric
Move `Integral#(zero|nonzero|positive|negative)?` to `Numeric`
| -rw-r--r-- | mrbgems/mruby-numeric-ext/mrblib/numeric_ext.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-numeric-ext/mrblib/numeric_ext.rb b/mrbgems/mruby-numeric-ext/mrblib/numeric_ext.rb index e86e8b283..576605cb1 100644 --- a/mrbgems/mruby-numeric-ext/mrblib/numeric_ext.rb +++ b/mrbgems/mruby-numeric-ext/mrblib/numeric_ext.rb @@ -1,4 +1,4 @@ -module Integral +class Numeric def zero? self == 0 end |
