Class: Automux::Core::Tmux::Pane

Inherits:
Base
  • Object
show all
Defined in:
lib/automux/core/tmux/pane.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Support::CustomAccessors

#dup_attr_reader

Constructor Details

#initialize(window, command) ⇒ Pane

Returns a new instance of Pane.



8
9
10
11
# File 'lib/automux/core/tmux/pane.rb', line 8

def initialize(window, command)
  @window = window
  @command = command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



5
6
7
# File 'lib/automux/core/tmux/pane.rb', line 5

def command
  @command
end

Instance Method Details

#indexObject



13
14
15
# File 'lib/automux/core/tmux/pane.rb', line 13

def index
  window.panes.find_index(self)
end