aboutsummaryrefslogtreecommitdiffstats
path: root/ext/date
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-13 20:16:07 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-13 20:16:07 +0000
commit2f00c56eb78696dc30b7d218bd32f10b9e96028a (patch)
tree33db045601ec6498e03cc9fd94a488eb5c4d0dbb /ext/date
parent7ce520e90a2aa4fae492ecdd0cba5b4df92c9462 (diff)
downloadruby-2f00c56eb78696dc30b7d218bd32f10b9e96028a.tar.gz
* 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
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/lib/date.rb16
1 files 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