mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* lib/rational.rb: resolved conflicts of aliases.
* lib/mathn.rb: avoided some warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									a64f397403
								
							
						
					
					
						commit
						c3986f2805
					
				
					 3 changed files with 15 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,9 @@
 | 
			
		|||
Sun Oct  5 21:28:58 2008  Tadayoshi Funaba  <tadf@dotrb.org>
 | 
			
		||||
 | 
			
		||||
	* lib/rational.rb: resolved conflicts of aliases.
 | 
			
		||||
 | 
			
		||||
	* lib/mathn.rb: avoided some warnings.
 | 
			
		||||
 | 
			
		||||
Sun Oct  5 18:51:50 2008  Tanaka Akira  <akr@fsij.org>
 | 
			
		||||
 | 
			
		||||
	* lib/open-uri.rb: remove debug code introduced by previous change.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										14
									
								
								lib/mathn.rb
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								lib/mathn.rb
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -59,9 +59,9 @@ class Fixnum
 | 
			
		|||
  remove_method :/
 | 
			
		||||
  alias / quo
 | 
			
		||||
 | 
			
		||||
  def_canon *(instance_methods - Object.methods - [:canon])
 | 
			
		||||
  def_canon(*(instance_methods - Object.methods - [:canon]))
 | 
			
		||||
 | 
			
		||||
  alias power! **
 | 
			
		||||
  alias power! ** unless defined?(0.power!)
 | 
			
		||||
 | 
			
		||||
  def ** (other)
 | 
			
		||||
    if self < 0 && other.round != other
 | 
			
		||||
| 
						 | 
				
			
			@ -77,9 +77,9 @@ class Bignum
 | 
			
		|||
  remove_method :/
 | 
			
		||||
  alias / quo
 | 
			
		||||
 | 
			
		||||
  def_canon *(instance_methods - Object.methods - [:canon])
 | 
			
		||||
  def_canon(*(instance_methods - Object.methods - [:canon]))
 | 
			
		||||
 | 
			
		||||
  alias power! **
 | 
			
		||||
  alias power! ** unless defined?(0.power!)
 | 
			
		||||
 | 
			
		||||
  def ** (other)
 | 
			
		||||
    if self < 0 && other.round != other
 | 
			
		||||
| 
						 | 
				
			
			@ -104,7 +104,7 @@ class Rational
 | 
			
		|||
    def convert(*args) convert_orig(*args).__send__(:canon) end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def_canon *(instance_methods - Object.methods - [:canon])
 | 
			
		||||
  def_canon(*(instance_methods - Object.methods - [:canon]))
 | 
			
		||||
 | 
			
		||||
  alias power! **
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -257,7 +257,7 @@ class Complex
 | 
			
		|||
    def convert(*args) convert_orig(*args).__send__(:canon) end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def_canon *(instance_methods - Object.methods - [:canon])
 | 
			
		||||
  def_canon(*(instance_methods - Object.methods - [:canon]))
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -281,7 +281,7 @@ end
 | 
			
		|||
 | 
			
		||||
class Float
 | 
			
		||||
 | 
			
		||||
  def_canon *(instance_methods - Object.methods - [:canon])
 | 
			
		||||
  def_canon(*(instance_methods - Object.methods - [:canon]))
 | 
			
		||||
 | 
			
		||||
  alias power! **
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ class Fixnum
 | 
			
		|||
  alias quof fdiv
 | 
			
		||||
  alias rdiv quo
 | 
			
		||||
 | 
			
		||||
  alias power! **
 | 
			
		||||
  alias power! ** unless defined?(0.power!)
 | 
			
		||||
  alias rpower **
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			@ -13,7 +13,7 @@ class Bignum
 | 
			
		|||
  alias quof fdiv
 | 
			
		||||
  alias rdiv quo
 | 
			
		||||
 | 
			
		||||
  alias power! **
 | 
			
		||||
  alias power! ** unless defined?(0.power!)
 | 
			
		||||
  alias rpower **
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue