Module: Tlux::Commandable

Included in:
Pane, Window
Defined in:
lib/tlux/commandable.rb

Instance Method Summary collapse

Instance Method Details

#command(command) ⇒ Object



3
4
5
# File 'lib/tlux/commandable.rb', line 3

def command(command)
  commands << command
end

#commandsObject



7
8
9
# File 'lib/tlux/commandable.rb', line 7

def commands
  @commands ||= []
end

#directory(directory = nil) ⇒ Object



11
12
13
14
# File 'lib/tlux/commandable.rb', line 11

def directory(directory = nil)
  @directory = directory unless directory.nil?
  @directory
end