Class: TmuxConnector::Resume

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/tmux-connector/commands/resume.rb', line 6

def name
  @name
end

#sessionObject (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

#runObject



13
14
15
# File 'lib/tmux-connector/commands/resume.rb', line 13

def run()
  session.start
end