Class: Ulysses::Library
- Inherits:
-
Object
- Object
- Ulysses::Library
- Defined in:
- lib/ulysses/library.rb
Constant Summary collapse
- DEFAULT_LIBRARY_DIR =
'~/Library/Mobile Documents/X5AZV975AG~com~soulmen~ulysses3/Documents/Library'
Instance Attribute Summary collapse
-
#dirname ⇒ Object
readonly
Returns the value of attribute dirname.
Instance Method Summary collapse
- #groups ⇒ Object
-
#initialize(dirname = nil) ⇒ Library
constructor
A new instance of Library.
- #reload ⇒ Object
Constructor Details
#initialize(dirname = nil) ⇒ Library
Returns a new instance of Library.
8 9 10 |
# File 'lib/ulysses/library.rb', line 8 def initialize(dirname = nil) @dirname = File.(dirname ||= DEFAULT_LIBRARY_DIR) end |
Instance Attribute Details
#dirname ⇒ Object (readonly)
Returns the value of attribute dirname.
6 7 8 |
# File 'lib/ulysses/library.rb', line 6 def dirname @dirname end |
Instance Method Details
#groups ⇒ Object
12 13 14 |
# File 'lib/ulysses/library.rb', line 12 def groups @groups ||= parse_groups end |
#reload ⇒ Object
16 17 18 |
# File 'lib/ulysses/library.rb', line 16 def reload @groups = nil end |