Hey all,
Is it possible to pass arguments to the initialize method of the class
you pass to EventMachine::connect?
For example, (from the rdocs):
class MyProtocolHandler < EventMachine::Connection
def initialize *args
super
# whatever else you want to do here
end
#.......your other class code
end
EventMachine::run {
EventMachine::connect host, port, MyProtocolHandler
}
This example seems to indicate that you can, but I don''t actually see
any way to do it.
Thanks,
Marc