class TaskManager::DoneTaskFile
Constants
- DEFAULT_NO_RESULTS
Public Instance Methods
all()
click to toggle source
Calls superclass method
# File lib/task_manager/done_task_file.rb, line 5 def all super.reverse!.first(DEFAULT_NO_RESULTS) end
Protected Instance Methods
create_node(task)
click to toggle source
Calls superclass method
# File lib/task_manager/done_task_file.rb, line 21 def create_node(task) node = super node['finished_at'] = time_now node end
root_node()
click to toggle source
Calls superclass method
# File lib/task_manager/done_task_file.rb, line 11 def root_node @root_node ||= begin xml.css(DONE_NODE).first || begin node = xml.create_element(DONE_NODE) super.add_child(node) node end end end