mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42:36 +02:00
5 lines
117 B
Ruby
5 lines
117 B
Ruby
class Numeric
|
|
def roundup(nearest=10)
|
|
self % nearest == 0 ? self : self + nearest - (self % nearest)
|
|
end
|
|
end
|