Class: Intent::Core::Documents
- Inherits:
-
Object
- Object
- Intent::Core::Documents
- Defined in:
- lib/intent/core.rb
Instance Attribute Summary collapse
-
#inbox ⇒ Object
readonly
Returns the value of attribute inbox.
-
#inventory ⇒ Object
readonly
Returns the value of attribute inventory.
-
#projects ⇒ Object
readonly
Returns the value of attribute projects.
Instance Method Summary collapse
-
#initialize ⇒ Documents
constructor
A new instance of Documents.
Constructor Details
#initialize ⇒ Documents
Returns a new instance of Documents.
158 159 160 161 162 |
# File 'lib/intent/core.rb', line 158 def initialize @projects = Projects.new("#{Intent::Env.documents_dir}/projects.txt") @inventory = Inventory.new("#{Intent::Env.documents_dir}/inventory.txt") @inbox = Inbox.new("#{Intent::Env.documents_dir}/todo.txt") end |
Instance Attribute Details
#inbox ⇒ Object (readonly)
Returns the value of attribute inbox.
156 157 158 |
# File 'lib/intent/core.rb', line 156 def inbox @inbox end |
#inventory ⇒ Object (readonly)
Returns the value of attribute inventory.
155 156 157 |
# File 'lib/intent/core.rb', line 155 def inventory @inventory end |
#projects ⇒ Object (readonly)
Returns the value of attribute projects.
154 155 156 |
# File 'lib/intent/core.rb', line 154 def projects @projects end |