Class: Automux::Core::Tmux::Pane
- Defined in:
- lib/automux/core/tmux/pane.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
- #index ⇒ Object
-
#initialize(window, command) ⇒ Pane
constructor
A new instance of Pane.
Methods included from Support::CustomAccessors
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
#command ⇒ Object (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
#index ⇒ Object
13 14 15 |
# File 'lib/automux/core/tmux/pane.rb', line 13 def index window.panes.find_index(self) end |