Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class Numeric def roundup(nearest) self % nearest == 0 ? self : self + nearest - (self % nearest) end def rounddown(nearest) self % nearest == 0 ? self : self - (self % nearest) end end
This paste will be private.
From the Design Piracy series on my blog: