From: Russell Fulton Date: 2009-10-02T07:49:40+09:00 Subject: Re: Monitors on data structures Ken Bloom wrote: > On Thu, 01 Oct 2009 08:22:26 +0900, Russell Fulton wrote: > >> callback routine. I have made a class AddressList: >> synchronise do # make sure we don't clobber another thread >> block. >> return unless host.status == 'up' >> does :) >> >> BTW I do have this program working without treads but I want to know why >> this does not work ! >> >> >> Russell > > synchronize is spelled with a z. You misspelled it in the example you > posted here. Is it possible that you misspelled it in your actual code, > and the NoMethodError is being raised in a place where it doesn't > generate output to alert you to the problem? Of course. American spelling, sigh... Yup! that fixed it! Thanks very much Ken Need a "pragma: Ex British Empire" :) :) I wonder why the NoMethodError does not appear? -- Posted via http://www.ruby-forum.com/.