From 2f00c56eb78696dc30b7d218bd32f10b9e96028a Mon Sep 17 00:00:00 2001 From: zzak Date: Mon, 13 Oct 2014 20:16:07 +0000 Subject: [PATCH] * ext/date/lib/date.rb: fix indent [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/date/lib/date.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ext/date/lib/date.rb b/ext/date/lib/date.rb index 83234f458b..4268661cb2 100644 --- a/ext/date/lib/date.rb +++ b/ext/date/lib/date.rb @@ -29,11 +29,11 @@ class Date 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 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