class << self
Definitions
def replace(items)
Replace the entire todo list.
Implementation
def replace(items)
@mutex.synchronize { @items = items.dup }
end
def all
Return all current items.
Implementation
def all
@mutex.synchronize { @items.dup }
end
def clear!
Clear all items.
Implementation
def clear!
@mutex.synchronize { @items.clear }
end