mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/mathn.rb: merge from 1.7: add Rational#inspect().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d7c1ab0713
commit
c97c62a594
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Wed Jul 4 00:09:16 2001 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
|
* lib/mathn.rb: merge from 1.7: add Rational#inspect().
|
||||||
|
|
||||||
Wed Jul 4 00:01:36 2001 Akinori MUSHA <knu@iDaemons.org>
|
Wed Jul 4 00:01:36 2001 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* lib/mkmf.rb: distclean should remove mkmf.log as well.
|
* lib/mkmf.rb: distclean should remove mkmf.log as well.
|
||||||
|
|
|
@ -122,7 +122,11 @@ end
|
||||||
|
|
||||||
class Rational
|
class Rational
|
||||||
Unify = true
|
Unify = true
|
||||||
|
|
||||||
|
def inspect
|
||||||
|
format "%s/%s", @numerator.inspect, @denominator.inspect
|
||||||
|
end
|
||||||
|
|
||||||
alias power! **
|
alias power! **
|
||||||
|
|
||||||
def ** (other)
|
def ** (other)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue