Class: Intent::Core::Projects
- Inherits:
-
Object
- Object
- Intent::Core::Projects
- Defined in:
- lib/intent/core.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
readonly
Returns the value of attribute list.
Instance Method Summary collapse
- #all ⇒ Object
- #all_tokens ⇒ Object
-
#initialize(db_path) ⇒ Projects
constructor
A new instance of Projects.
Constructor Details
Instance Attribute Details
#list ⇒ Object (readonly)
Returns the value of attribute list.
40 41 42 |
# File 'lib/intent/core.rb', line 40 def list @list end |
Instance Method Details
#all ⇒ Object
46 47 48 |
# File 'lib/intent/core.rb', line 46 def all list.by_not_done end |
#all_tokens ⇒ Object
50 51 52 |
# File 'lib/intent/core.rb', line 50 def all_tokens all.map { |project| project.projects.first } end |