APIdock / Ruby
/
method

notify

ruby latest stable - Class: Shell ::SystemCommand
notify(*opts)
public

ex)

if you wish to output:
 "shell: job(#{@command}:#{@pid}) close pipe-out."
then
 mes: "job(%id) close pipe-out."
yorn: Boolean(@shell.debug? or @shell.verbose?)
# File lib/shell/system-command.rb, line 148
 def notify(*opts)
 @shell.notify(*opts) do |mes|
 yield mes if iterator?
 mes.gsub!("%id", "#{@command}:##{@pid}")
 mes.gsub!("%name", "#{@command}")
 mes.gsub!("%pid", "#{@pid}")
 mes
 end
 end

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