Class: Cmd
Instance Method Summary collapse
- #chdir(path) ⇒ Object
-
#initialize(pty: true, uuid: false, color: true, printer: :pretty) ⇒ Cmd
constructor
A new instance of Cmd.
- #run(*args, &block) ⇒ Object
Constructor Details
#initialize(pty: true, uuid: false, color: true, printer: :pretty) ⇒ Cmd
Returns a new instance of Cmd.
94 95 96 |
# File 'lib/erhu/init.rb', line 94 def initialize(pty: true, uuid: false, color: true, printer: :pretty) @cmd = TTY::Command.new(pty: pty, uuid: uuid, color: color, pretty: printer) end |
Instance Method Details
#chdir(path) ⇒ Object
98 99 100 101 |
# File 'lib/erhu/init.rb', line 98 def chdir(path) @chdir = path self end |