David Gurba
2007-Mar-02 07:08 UTC
[Backgroundrb-devel] example standalone error ... but if i ...
If I add .instance in front of new_worker I get the following error ... but
for some reason i cant call new_worker directly...?
error:
ruby sample_app.rb
my sample app :)
./backgroundrb/middleman.rb:440:in `ex'': undefined method
`synchronize'' for
nil:NilClass (NoMethodError)
from ./backgroundrb/middleman.rb:401:in `[]''
from ./backgroundrb/middleman.rb:461:in `gen_key''
from ./backgroundrb/middleman.rb:173:in `new_worker''
from ./backgroundrb/middleman.rb:173:in `new_worker''
from sample_app.rb:9
code:
key = MiddleMan.instance.new_worker(:class => :example_worker)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20070301/e16d927f/attachment.html
