Class: TmuxConnector::Pane
- Inherits:
-
Object
- Object
- TmuxConnector::Pane
- Defined in:
- lib/tmux-connector/layout.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#ordinal ⇒ Object
readonly
Returns the value of attribute ordinal.
Instance Method Summary collapse
-
#initialize(host, ordinal) ⇒ Pane
constructor
A new instance of Pane.
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
#host ⇒ Object (readonly)
Returns the value of attribute host.
3 4 5 |
# File 'lib/tmux-connector/layout.rb', line 3 def host @host end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/tmux-connector/layout.rb', line 4 def name @name end |
#ordinal ⇒ Object (readonly)
Returns the value of attribute ordinal.
5 6 7 |
# File 'lib/tmux-connector/layout.rb', line 5 def ordinal @ordinal end |