[前][次][番号順一覧][スレッド一覧][生データ]

ruby-cvs:22726

From: tadf ruby-lang.org
Date: Fri, 15 Feb 2008 20:39:51 +0900 (JST)
Subject: [ruby-cvs:22726] Ruby:r15489 (ruby_1_8): * lib/rational.rb (floor, ceil, truncate, round): do not use

tadf	2008-02-15 20:39:50 +0900 (Fri, 15 Feb 2008)

  New Revision: 15489

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/lib/complex.rb
    branches/ruby_1_8/lib/rational.rb

  Log:
    * lib/rational.rb (floor, ceil, truncate, round): do not use
      definitions of Numeric.
    
    * lib/rational.rb (to_i): should returns truncated self.
    
    * lib/complex.rb (numerator): requires
      Integer#{numerator,denominator}.
    
    * lib/complex.rb (quo): do not use definition of Numeric.
    
    * lib/complex.rb (div, divmod, floor, ceil, truncate, round):
      undef'ed.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=15489&r2=15488&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/lib/complex.rb?r1=15489&r2=15488&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/lib/rational.rb?r1=15489&r2=15488&diff_format=u


[前][次][番号順一覧][スレッド一覧][生データ]