Sha256: cd5b007e00953ffde2c23ba478c428916c2005ad17b22da1c3c8587726b31b7a

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

module Evertils
  module Type
    class MonthlyTaskSummary < Type::Base
      NOTEBOOK = :'Monthly Task Summaries'

      #
      # @since 0.3.7
      def initialize(config, *args)
        super(config, *args)

        @name = @args.first
        @title = "#{@name} #{DateTime.now.strftime('%m-%Y')}"
        @content = @format.template_contents(NOTEBOOK)
      end

      #
      # @since 0.3.9
      def tags
        ["day-#{Date.today.yday}", @args.first]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
evertils-0.3.10 lib/evertils/types/monthly-task-summary.rb