Method: Time#nearest_hour

Defined in:
lib/texmailer/drafts.rb

#nearest_hourObject


271
272
273
274
275
276
277
# File 'lib/texmailer/drafts.rb', line 271

def nearest_hour
  if min < 30
    self
  else
    self + (60 - min) * 60
  end
end