Class: Intent::Core::Projects

Inherits:
Object
  • Object
show all
Defined in:
lib/intent/core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(db_path) ⇒ Projects

Returns a new instance of Projects.



42
43
44
# File 'lib/intent/core.rb', line 42

def initialize(db_path)
  @list = List.new(db_path)
end

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



40
41
42
# File 'lib/intent/core.rb', line 40

def list
  @list
end

Instance Method Details

#allObject



46
47
48
# File 'lib/intent/core.rb', line 46

def all
  list.by_not_done
end

#all_tokensObject



50
51
52
# File 'lib/intent/core.rb', line 50

def all_tokens
  all.map { |project| project.projects.first }
end