diff options
Diffstat (limited to 'lib/mathn.rb')
-rw-r--r-- | lib/mathn.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mathn.rb b/lib/mathn.rb index 57eac113c7..f834893f3f 100644 --- a/lib/mathn.rb +++ b/lib/mathn.rb @@ -25,7 +25,7 @@ class Fixnum remove_method :/ alias / quo - alias power! ** unless defined?(0.power!) + alias power! ** unless method_defined? :power! def ** (other) if self < 0 && other.round != other @@ -41,7 +41,7 @@ class Bignum remove_method :/ alias / quo - alias power! ** unless defined?(0.power!) + alias power! ** unless method_defined? :power! def ** (other) if self < 0 && other.round != other |