diff options
| author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-24 00:42:23 +0000 |
|---|---|---|
| committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-24 00:42:23 +0000 |
| commit | 6e8d72a196d6d8364cac0d3793a8dfdfe2581365 (patch) | |
| tree | f43733ed5aca67ba20845808273bbdb9a434d63e /lib/rational.rb | |
| parent | ead3bbfcfe8ddd15e7253835c9096d939e131775 (diff) | |
| download | ruby-6e8d72a196d6d8364cac0d3793a8dfdfe2581365.tar.gz ruby-6e8d72a196d6d8364cac0d3793a8dfdfe2581365.tar.xz ruby-6e8d72a196d6d8364cac0d3793a8dfdfe2581365.zip | |
* 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
Diffstat (limited to 'lib/rational.rb')
| -rw-r--r-- | lib/rational.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rational.rb b/lib/rational.rb index 515c273d5..a1aeca1e4 100644 --- a/lib/rational.rb +++ b/lib/rational.rb @@ -7,7 +7,7 @@ class Fixnum alias quof fdiv alias rdiv quo - alias power! ** unless defined?(0.power!) + alias power! ** unless method_defined? :power! alias rpower ** end @@ -17,7 +17,7 @@ class Bignum alias quof fdiv alias rdiv quo - alias power! ** unless defined?(0.power!) + alias power! ** unless method_defined? :power! alias rpower ** end |
