mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 08:11:56 +02:00
more copy fixes
This commit is contained in:
parent
46e05ccb54
commit
3b0dd09b97
6 changed files with 50 additions and 12 deletions
|
@ -96,3 +96,13 @@ class Sinatra::Base
|
|||
render_original engine, data, options, locals, &block
|
||||
end
|
||||
end
|
||||
|
||||
class Numeric
|
||||
def roundup(nearest=10)
|
||||
self % nearest == 0 ? self : self + nearest - (self % nearest)
|
||||
end
|
||||
|
||||
def rounddown(nearest=10)
|
||||
self % nearest == 0 ? self : self - (self % nearest)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue