1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/rational.rb
tadf c3986f2805 * lib/rational.rb: resolved conflicts of aliases.
* lib/mathn.rb: avoided some warnings.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-05 12:30:54 +00:00

19 lines
235 B
Ruby

class Fixnum
alias quof fdiv
alias rdiv quo
alias power! ** unless defined?(0.power!)
alias rpower **
end
class Bignum
alias quof fdiv
alias rdiv quo
alias power! ** unless defined?(0.power!)
alias rpower **
end