APIdock / Ruby
/
method

new

ruby latest stable - Class: Shell ::SystemCommand
new(sh, command, *opts)
public

No documentation available.

# File lib/shell/system-command.rb, line 17
 def initialize(sh, command, *opts)
 if t = opts.find{|opt| !opt.kind_of?(String) && opt.class}
 Shell.Fail TypeError, t.class, "String"
 end
 super(sh)
 @command = command
 @opts = opts
 @input_queue = Thread::Queue.new
 @pid = nil
 sh.process_controller.add_schedule(self)
 end

AltStyle によって変換されたページ (->オリジナル) /