event deleting

This commit is contained in:
Kyle Drake 2014-05-02 17:44:31 -07:00
parent 6277a94a5b
commit a4a2b5165b
14 changed files with 105 additions and 31 deletions

9
ext/numeric.rb Normal file
View file

@ -0,0 +1,9 @@
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