Class: Ulysses::Group
- Inherits:
-
Object
- Object
- Ulysses::Group
- Defined in:
- lib/ulysses/group.rb
Instance Attribute Summary collapse
-
#dirname ⇒ Object
readonly
Returns the value of attribute dirname.
Instance Method Summary collapse
- #children ⇒ Object (also: #groups)
- #display_name ⇒ Object
- #info ⇒ Object
-
#initialize(info_file_path) ⇒ Group
constructor
A new instance of Group.
- #reload ⇒ Object
- #sheets ⇒ Object
Constructor Details
#initialize(info_file_path) ⇒ Group
Returns a new instance of Group.
6 7 8 9 |
# File 'lib/ulysses/group.rb', line 6 def initialize(info_file_path) @info_file = info_file_path @dirname = File.dirname(@info_file) end |
Instance Attribute Details
#dirname ⇒ Object (readonly)
Returns the value of attribute dirname.
4 5 6 |
# File 'lib/ulysses/group.rb', line 4 def dirname @dirname end |
Instance Method Details
#children ⇒ Object Also known as: groups
19 20 21 |
# File 'lib/ulysses/group.rb', line 19 def children @children ||= parse_children end |
#display_name ⇒ Object
15 16 17 |
# File 'lib/ulysses/group.rb', line 15 def display_name @display_name ||= info['displayName'].content end |
#info ⇒ Object
11 12 13 |
# File 'lib/ulysses/group.rb', line 11 def info @info ||= parse_info end |
#reload ⇒ Object
28 29 30 |
# File 'lib/ulysses/group.rb', line 28 def reload @info, @children, @sheets = nil end |
#sheets ⇒ Object
24 25 26 |
# File 'lib/ulysses/group.rb', line 24 def sheets @sheets ||= parse_sheets end |