ruby-changes:35827
From: zzak <ko1@a...>
Date: Tue, 14 Oct 2014 05:16:19 +0900 (JST)
Subject: [ruby-changes:35827] zzak:r47909 (trunk): * ext/date/lib/date.rb: fix indent [ci skip]
zzak 2014-10-14 05:16:07 +0900 (Tue, 14 Oct 2014) New Revision: 47909 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47909 Log: * ext/date/lib/date.rb: fix indent [ci skip] Modified files: trunk/ext/date/lib/date.rb Index: ext/date/lib/date.rb =================================================================== --- ext/date/lib/date.rb (revision 47908) +++ ext/date/lib/date.rb (revision 47909) @@ -29,11 +29,11 @@ class Date https://github.com/ruby/ruby/blob/trunk/ext/date/lib/date.rb#L29 when Infinity; return d <=> other.d when Numeric; return d else - begin - l, r = other.coerce(self) - return l <=> r - rescue NoMethodError - end + begin + l, r = other.coerce(self) + return l <=> r + rescue NoMethodError + end end nil end @@ -42,16 +42,16 @@ class Date https://github.com/ruby/ruby/blob/trunk/ext/date/lib/date.rb#L42 case other when Numeric; return -d, d else - super + super end end def to_f return 0 if @d == 0 if @d > 0 - Float::INFINITY + Float::INFINITY else - -Float::INFINITY + -Float::INFINITY end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/