Class: TmuxConnector::Layout

Inherits:
Object
  • Object
show all
Defined in:
lib/tmux-connector/layout.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, groups, merge_rules) ⇒ Layout

Returns a new instance of Layout.



23
24
25
26
27
28
29
30
31
# File 'lib/tmux-connector/layout.rb', line 23

def initialize(config, groups, merge_rules)
  @raw_config = config
  @groups = groups
  @merge_rules = merge_rules

  @windows = []

  generate
end

Instance Attribute Details

#groupsObject (readonly)

Returns the value of attribute groups.



17
18
19
# File 'lib/tmux-connector/layout.rb', line 17

def groups
  @groups
end

#merge_rulesObject (readonly)

Returns the value of attribute merge_rules.



18
19
20
# File 'lib/tmux-connector/layout.rb', line 18

def merge_rules
  @merge_rules
end

#merged_groupsObject (readonly)

Returns the value of attribute merged_groups.



19
20
21
# File 'lib/tmux-connector/layout.rb', line 19

def merged_groups
  @merged_groups
end

#raw_configObject (readonly)

Returns the value of attribute raw_config.



20
21
22
# File 'lib/tmux-connector/layout.rb', line 20

def raw_config
  @raw_config
end

#windowsObject (readonly)

Returns the value of attribute windows.



21
22
23
# File 'lib/tmux-connector/layout.rb', line 21

def windows
  @windows
end