Sha256: b5a5f80604d09e6b5d902b3add2ae6b93f35cd51ffd516dc6ed924666f51f8e8
Contents?: true
Size: 220 Bytes
Versions: 3
Compression:
Stored size: 220 Bytes
Contents
class Integer def days_from_today(format = '%D') the_day = Date.today + self the_day.strftime(format) end def days_ago(format = '%D') the_day = Date.today - self the_day.strftime(format) end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
data_builder-2.0.0 | lib/data_builder/core_ext/integer.rb |
data_magic-1.2 | lib/data_magic/core_ext/integer.rb |
data_magic-1.1 | lib/data_magic/core_ext/integer.rb |