Class: Things::Document
- Inherits:
-
Object
- Object
- Things::Document
- Defined in:
- lib/things/document.rb
Constant Summary collapse
- DEFAULT_DATABASE_PATH =
"#{ENV['HOME']}/Library/Application Support/Cultured Code/Things/Database.xml"
Instance Attribute Summary collapse
-
#database_file ⇒ Object
readonly
Returns the value of attribute database_file.
Instance Method Summary collapse
- #database ⇒ Object
- #focus(name) ⇒ Object
-
#initialize(options = {}) {|_self| ... } ⇒ Document
constructor
A new instance of Document.
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ Document
Returns a new instance of Document.
7 8 9 10 11 12 |
# File 'lib/things/document.rb', line 7 def initialize( = {}, &block) @database_file = [:database] || DEFAULT_DATABASE_PATH @focus_cache = {} parse! yield self if block_given? end |
Instance Attribute Details
#database_file ⇒ Object (readonly)
Returns the value of attribute database_file.
5 6 7 |
# File 'lib/things/document.rb', line 5 def database_file @database_file end |