From 6e8d72a196d6d8364cac0d3793a8dfdfe2581365 Mon Sep 17 00:00:00 2001 From: marcandre Date: Thu, 24 Sep 2009 00:42:23 +0000 Subject: * lib/mathn.rb (Bignum#**): Fixed bignum**fixnum that was broken when requiring lib/mathn [ruby-core:25740] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mathn.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/mathn.rb') diff --git a/lib/mathn.rb b/lib/mathn.rb index 57eac113c..f834893f3 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 -- cgit