Method: Numeric#roundup
- Defined in:
- lib/dragonfly_extensions/monkey_patches.rb
#roundup(nearest = 10) ⇒ Object
66 67 68 |
# File 'lib/dragonfly_extensions/monkey_patches.rb', line 66 def roundup(nearest=10) self % nearest == 0 ? self : self + nearest - (self % nearest) end |