>>>>> "R" == Ramza Brown <berlin.brown@gmail.com> writes:
R> That ruby hangs and doesnt produce an error. For example; I am also
R> working with threads so I can continue it is just hard to debug.
Use Thread#abort_on_exception with threads
moulon% ruby -e 'Thread.new { puts "#{truncate(1)}" }'
moulon%
moulon% ruby -e 'Thread.abort_on_exception = true; Thread.new { puts "#{truncate(1)}" }'
-e:1: undefined method `truncate' for main:Object (NoMethodError)
from -e:1
moulon%
--
Guy Decoux