summaryrefslogtreecommitdiff
path: root/lib/rational.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rational.rb')
-rw-r--r--lib/rational.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rational.rb b/lib/rational.rb
index 0c784fb94b..a0f0b06f8b 100644
--- a/lib/rational.rb
+++ b/lib/rational.rb
@@ -329,7 +329,7 @@ class Integer
end
class Fixnum
- if not defined? Complex
+ unless defined? Complex
alias power! **;
end
@@ -347,13 +347,13 @@ class Fixnum
end
end
- if not defined? Complex
+ unless defined? Complex
alias ** rpower
end
end
class Bignum
- if not defined? power!
+ unless defined? Complex
alias power! **
end
@@ -371,7 +371,7 @@ class Bignum
end
end
- if not defined? Complex
+ unless defined? Complex
alias ** rpower
end
end