class Numeric def roundup(nearest=10) self % nearest == 0 ? self : self + nearest - (self % nearest) end end