ruby/lib/rational.rb

24 строки
308 B
Ruby
Исходник Обычный вид История

# :enddoc:
warn('lib/rational.rb is deprecated') if $VERBOSE
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