class Shellany::Sheller
def initialize(*args)
-
args
(*String
) -- a list of command parts to run in a subshell -
args
(Array
) -- an array of command parts to run in a subshell -
args
(String
) -- a command to run in a subshell
def initialize(*args) fail ArgumentError, "no command given" if args.empty? @command = args @ran = false end