Class: Evertils::Type::MonthlyTaskSummary
- Defined in:
- lib/evertils/types/monthly-task-summary.rb
Constant Summary collapse
- NOTEBOOK =
:'Monthly Task Summaries'
- COLOUR =
0xffe8b7
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(config, *args) ⇒ MonthlyTaskSummary
constructor
A new instance of MonthlyTaskSummary.
- #tags ⇒ Object
Methods inherited from Base
#create, #morning_note?, #should_create?
Constructor Details
#initialize(config, *args) ⇒ MonthlyTaskSummary
Returns a new instance of MonthlyTaskSummary.
9 10 11 12 13 14 15 |
# File 'lib/evertils/types/monthly-task-summary.rb', line 9 def initialize(config, *args) super(config, *args) @name = @args.first @title = "#{@name} #{DateTime.now.strftime('%m-%Y')}" @content = @format.template_contents(NOTEBOOK) end |
Instance Method Details
#tags ⇒ Object
19 20 21 |
# File 'lib/evertils/types/monthly-task-summary.rb', line 19 def ["day-#{Date.today.yday}", @args.first] end |