aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mathn.rb
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-24 00:42:23 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-24 00:42:23 +0000
commit399dace5edc9380b66d709108195c71fc418f1ab (patch)
treef43733ed5aca67ba20845808273bbdb9a434d63e /lib/mathn.rb
parent089494fcd12497e872008a711a189f2f55fc0206 (diff)
downloadruby-399dace5edc9380b66d709108195c71fc418f1ab.tar.gz
* lib/mathn.rb (Bignum#**): Fixed bignum**fixnum that was broken when requiring lib/mathn
[ruby-core:25740] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mathn.rb')
-rw-r--r--lib/mathn.rb4
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