mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00

-- * lib/mathn.rb (Bignum#**): Fixed bignum**fixnum that was broken when requiring lib/mathn [ruby-core:25740] -- * test/test_mathn.rb (TestMathn): new test case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
19 lines
245 B
Ruby
19 lines
245 B
Ruby
class Fixnum
|
|
|
|
alias quof fdiv
|
|
alias rdiv quo
|
|
|
|
alias power! ** unless method_defined? :power!
|
|
alias rpower **
|
|
|
|
end
|
|
|
|
class Bignum
|
|
|
|
alias quof fdiv
|
|
alias rdiv quo
|
|
|
|
alias power! ** unless method_defined? :power!
|
|
alias rpower **
|
|
|
|
end
|