* lib/mathn.rb: Fix indentation. Patch by Jason Dew.
[Ruby 1.9 - Feature #4682] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6e10135d47
commit
8c47d51883
@ -1,3 +1,8 @@
|
|||||||
|
Fri May 13 07:04:33 2011 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
|
* lib/mathn.rb: Fix indentation. Patch by Jason Dew.
|
||||||
|
[Ruby 1.9 - Feature #4682]
|
||||||
|
|
||||||
Fri May 13 06:50:43 2011 Eric Hodel <drbrain@segment7.net>
|
Fri May 13 06:50:43 2011 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* lib/mathn.rb: Add documentation. Patch by Jason Dew. [Ruby 1.9 -
|
* lib/mathn.rb: Add documentation. Patch by Jason Dew. [Ruby 1.9 -
|
||||||
|
@ -73,6 +73,9 @@ end
|
|||||||
|
|
||||||
class Rational
|
class Rational
|
||||||
remove_method :**
|
remove_method :**
|
||||||
|
|
||||||
|
##
|
||||||
|
# exponentiate by +other+
|
||||||
def ** (other)
|
def ** (other)
|
||||||
if other.kind_of?(Rational)
|
if other.kind_of?(Rational)
|
||||||
other2 = other
|
other2 = other
|
||||||
|
Loading…
x
Reference in New Issue
Block a user