Class: Evertils::Type::PriorityQueue
- Defined in:
- lib/evertils/types/priority-queue.rb
Constant Summary collapse
- NOTEBOOK =
:'Priority Queue'- COLOUR =
0xffe8b7
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(config, *args) ⇒ PriorityQueue
constructor
A new instance of PriorityQueue.
- #tags ⇒ Object
Methods inherited from Base
#create, #morning_note?, #should_create?
Constructor Details
#initialize(config, *args) ⇒ PriorityQueue
Returns a new instance of PriorityQueue.
9 10 11 12 13 14 15 |
# File 'lib/evertils/types/priority-queue.rb', line 9 def initialize(config, *args) super(config, *args) @handler = Evertils::Helper.load('ApiEnmlHandler', @config) @title = @format.date_templates[NOTEBOOK] @content = find_previous end |
Instance Method Details
#tags ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/evertils/types/priority-queue.rb', line 19 def [ "day-#{Date.today.yday}", "week-#{Date.today.cweek}", "month-#{Date.today.month}" ] end |