Permalink
Browse files

Reformat case statement

  • Loading branch information...
1 parent 0d0b968 commit 592261dff3984b0916da51ae3a79c1d936c31169 @sferik committed May 12, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 lib/t.rb
View
@@ -22,10 +22,13 @@ def local_time(time)
def utc_offset=(offset)
@utc_offset = case offset
- when String then Time.zone_offset(offset)
- when NilClass then nil
- else offset.to_i
- end
+ when String
+ Time.zone_offset(offset)
+ when NilClass
+ nil
+ else
+ offset.to_i
+ end
end
end

0 comments on commit 592261d

Please sign in to comment.