Class: TmuxConnector::Pane

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, ordinal) ⇒ Pane

Returns a new instance of Pane.



7
8
9
10
11
12
13
# File 'lib/tmux-connector/layout.rb', line 7

def initialize(host, ordinal)
  @host = host
  @ordinal = ordinal

  @name = host.display_name
  @name += "##{ ordinal }" if ordinal > 1
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



3
4
5
# File 'lib/tmux-connector/layout.rb', line 3

def host
  @host
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/tmux-connector/layout.rb', line 4

def name
  @name
end

#ordinalObject (readonly)

Returns the value of attribute ordinal.



5
6
7
# File 'lib/tmux-connector/layout.rb', line 5

def ordinal
  @ordinal
end