Class: TmuxConnector::Resume
- Inherits:
-
Object
- Object
- TmuxConnector::Resume
- Defined in:
- lib/tmux-connector/commands/resume.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
-
#initialize(args) ⇒ Resume
constructor
A new instance of Resume.
- #run ⇒ Object
Constructor Details
#initialize(args) ⇒ Resume
Returns a new instance of Resume.
9 10 11 |
# File 'lib/tmux-connector/commands/resume.rb', line 9 def initialize(args) @session = Session.load_by_name args['<session-name>'] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/tmux-connector/commands/resume.rb', line 6 def name @name end |
#session ⇒ Object (readonly)
Returns the value of attribute session.
7 8 9 |
# File 'lib/tmux-connector/commands/resume.rb', line 7 def session @session end |
Instance Method Details
#run ⇒ Object
13 14 15 |
# File 'lib/tmux-connector/commands/resume.rb', line 13 def run() session.start end |