Method: Numeric#rounddown

Defined in:
lib/dragonfly_extensions/monkey_patches.rb

#rounddown(nearest = 10) ⇒ Object



70
71
72
# File 'lib/dragonfly_extensions/monkey_patches.rb', line 70

def rounddown(nearest=10)
  self % nearest == 0 ? self : self - (self % nearest)
end