Class: Ulysses::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/ulysses/group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dirnameObject (readonly)

Returns the value of attribute dirname.



4
5
6
# File 'lib/ulysses/group.rb', line 4

def dirname
  @dirname
end

Instance Method Details

#childrenObject Also known as: groups



19
20
21
# File 'lib/ulysses/group.rb', line 19

def children
  @children ||= parse_children
end

#display_nameObject



15
16
17
# File 'lib/ulysses/group.rb', line 15

def display_name
  @display_name ||= info['displayName'].content
end

#infoObject



11
12
13
# File 'lib/ulysses/group.rb', line 11

def info
  @info ||= parse_info
end

#reloadObject



28
29
30
# File 'lib/ulysses/group.rb', line 28

def reload
  @info, @children, @sheets = nil
end

#sheetsObject



24
25
26
# File 'lib/ulysses/group.rb', line 24

def sheets
  @sheets ||= parse_sheets
end