Class: Intent::Core::Documents
- Inherits:
-
Object
- Object
- Intent::Core::Documents
- Defined in:
- lib/intent/core/documents.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.
-
#working_directory ⇒ Object
readonly
Returns the value of attribute working_directory.
Instance Method Summary collapse
-
#initialize ⇒ Documents
constructor
A new instance of Documents.
Constructor Details
#initialize ⇒ Documents
Returns a new instance of Documents.
9 10 11 12 13 14 |
# File 'lib/intent/core/documents.rb', line 9 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") @working_directory = Directory.new(Dir.pwd, @projects) end |
Instance Attribute Details
#inbox ⇒ Object (readonly)
Returns the value of attribute inbox.
6 7 8 |
# File 'lib/intent/core/documents.rb', line 6 def inbox @inbox end |
#inventory ⇒ Object (readonly)
Returns the value of attribute inventory.
5 6 7 |
# File 'lib/intent/core/documents.rb', line 5 def inventory @inventory end |
#projects ⇒ Object (readonly)
Returns the value of attribute projects.
4 5 6 |
# File 'lib/intent/core/documents.rb', line 4 def projects @projects end |
#working_directory ⇒ Object (readonly)
Returns the value of attribute working_directory.
7 8 9 |
# File 'lib/intent/core/documents.rb', line 7 def working_directory @working_directory end |