Sha256: b1e1828d438edc3dd0f4db6b339eee992780309258fad1ec6e965e51f268fa45
Contents?: true
Size: 301 Bytes
Versions: 3
Compression:
Stored size: 301 Bytes
Contents
module Memo class Today def initialize(config: Memo::Config.new) @config = config @today = Date.today.to_s @year, @month, @day = @today.split("-") end def dir = "#{@year}/#{@month}" def file = "#{@day}.#{@config.ext}" def fullpath = "#{dir}/#{file}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ememo-0.2.1 | lib/memo/value/today.rb |
ememo-0.1.8 | lib/memo/value/today.rb |
ememo-0.1.7 | lib/memo/value/today.rb |