diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-05-21 20:26:53 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-05-21 20:43:42 +0900 |
| commit | 3b46831da83b4d5d5355c60261fb3ebe2a885513 (patch) | |
| tree | 9bf4fb80413c0a39b0547d2ddf86810a247d76c7 /mrbgems | |
| parent | 24525fd1ae30ddeef618a687c2f3c6aa1104b96d (diff) | |
| download | mruby-3b46831da83b4d5d5355c60261fb3ebe2a885513.tar.gz mruby-3b46831da83b4d5d5355c60261fb3ebe2a885513.zip | |
Move `**`,`/`,`quo`,`div` and comparison methods to Integral from Numeric
Having these methods in Numeric can get in the way of creating subclasses of
Numeric because they only support Fixnum and Float.
Diffstat (limited to 'mrbgems')
| -rw-r--r-- | mrbgems/mruby-rational/mrblib/rational.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mrbgems/mruby-rational/mrblib/rational.rb b/mrbgems/mruby-rational/mrblib/rational.rb index 28c96c69f..cecede48a 100644 --- a/mrbgems/mruby-rational/mrblib/rational.rb +++ b/mrbgems/mruby-rational/mrblib/rational.rb @@ -1,7 +1,4 @@ class Rational < Numeric - # Override #<, #<=, #>, #>= in Numeric - prepend Comparable - def inspect "(#{to_s})" end |
