diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-17 22:57:28 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-17 23:02:35 +0900 |
| commit | c7452ff61f7bf8cb2c2ebd8ca6b2dfd844f70a1a (patch) | |
| tree | 78edc90e474b3ec1ae46a7e84c2529ed983b4582 /mrbgems/mruby-rational | |
| parent | b4817a54f07f576a34a079f2e8d96f8c13611a76 (diff) | |
| download | mruby-c7452ff61f7bf8cb2c2ebd8ca6b2dfd844f70a1a.tar.gz mruby-c7452ff61f7bf8cb2c2ebd8ca6b2dfd844f70a1a.zip | |
Define `Rational#quo`; fix #5268
Diffstat (limited to 'mrbgems/mruby-rational')
| -rw-r--r-- | mrbgems/mruby-rational/mrblib/rational.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-rational/mrblib/rational.rb b/mrbgems/mruby-rational/mrblib/rational.rb index febabbae7..aaafc9899 100644 --- a/mrbgems/mruby-rational/mrblib/rational.rb +++ b/mrbgems/mruby-rational/mrblib/rational.rb @@ -47,6 +47,8 @@ class Rational < Numeric end end + alias quo / + def <=>(rhs) case rhs when Integer, Float |
