diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-05-22 19:57:35 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-05-22 19:57:35 +0900 |
| commit | 8513abd40404ef8cb8340da906f2d15101536de1 (patch) | |
| tree | 1465e42a91806277168f33b4c464e230641ce0bb /mrbgems/mruby-rational/mrblib | |
| parent | 85a2dfc841b90ced18a2e98cd98a58ab7e094863 (diff) | |
| download | mruby-8513abd40404ef8cb8340da906f2d15101536de1.tar.gz mruby-8513abd40404ef8cb8340da906f2d15101536de1.zip | |
`Kernel#Rational` requires numerator
Diffstat (limited to 'mrbgems/mruby-rational/mrblib')
| -rw-r--r-- | mrbgems/mruby-rational/mrblib/rational.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-rational/mrblib/rational.rb b/mrbgems/mruby-rational/mrblib/rational.rb index c8614ecea..4936b1123 100644 --- a/mrbgems/mruby-rational/mrblib/rational.rb +++ b/mrbgems/mruby-rational/mrblib/rational.rb @@ -71,7 +71,7 @@ class Numeric end module Kernel - def Rational(numerator = 0, denominator = 1) + def Rational(numerator, denominator = 1) a = numerator b = denominator a, b = b, a % b until b == 0 |
