Is it possible to launch a Ruby thread without passing a block to
Those familiar with threading in Java will know that you can write a
class that is a subclass of Thread, and then put the thread’s code into
‘public static void run,’ which gets executed once thread.start is
called. Can something similar to this be done in Ruby?
Basically, I want to write a Ruby class that is subclass of thread, and
whose ‘initialize’ method is called when it is created. Can it be done?