summaryrefslogtreecommitdiff
path: root/lib/rational.rb
blob: 5acfa5433d890d4131fffed9b6e7dd2b4f0840ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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