Sha256: 9e232c1de64fb34f6b9ab27d964c67822e0a313626f2196c69c4bb4c0260ae64
Contents?: true
Size: 517 Bytes
Versions: 2
Compression:
Stored size: 517 Bytes
Contents
module Intent module Core class Inbox attr_reader :list def initialize(db_path) @list = List.new(db_path) end def all @list.by_not_done end def focused @list.by_context('@focus').by_not_done end def focused_projects focused.map { |t| t.projects }.flatten.uniq end def add_line!(line) record = Record.new("#{Date.today} #{line}") @list.prepend(record) @list.save! end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
intent-0.8.1 | lib/intent/core/inbox.rb |
intent-0.8.0 | lib/intent/core/inbox.rb |