Sha256: 2de65040c917bdc3ae77135e9617c80b0954ed76c8bda2480783d5c5a9017f60

Contents?: true

Size: 303 Bytes

Versions: 5

Compression:

Stored size: 303 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

5 entries across 5 versions & 1 rubygems

Version Path
ememo-0.1.6 lib/memo/value/today.rb
ememo-0.1.5 lib/memo/value/today.rb
ememo-0.1.4 lib/memo/value/today.rb
ememo-0.1.3 lib/memo/value/today.rb
ememo-0.1.2 lib/memo/value/today.rb