method
notify
v1_8_6_287 -
Show latest stable
- Class:
Shell
notify(*opts, &block)public
No documentation available.
# File lib/shell.rb, line 244
def self.notify(*opts, &block)
Thread.exclusive do
if opts[-1].kind_of?(String)
yorn = verbose?
else
yorn = opts.pop
end
return unless yorn
_head = true
print opts.collect{|mes|
mes = mes.dup
yield mes if iterator?
if _head
_head = false
"shell: " + mes
else
" " + mes
end
}.join("\n")+"\n"
end
end