Hi --

On Sun, 19 Aug 2007, Matthew B Gardner wrote:

> I didn't include it with my code, but I wrote it in like this:
>
> class Character < Mind
> 	def initialize name, acc
> 		super(name)
> 		@account = acc
> 	end
> 	def == obj
> 		self.equal?(obj)
> 	end
> 	def quit
> 		world.characters.delete self
> 	end
> end
>
> This addition only works after I reload the character.rb file while the
> program is running. Initially (until I reload the file),
> world#characters.delete deletes all of the Character objects -- after the
> reload it only delete the instance.
>
> Does this help at all?

I'm afraid I can't reproduce the error, so I'm not sure where to start
looking for trouble. I get:

2
1

when I run it.


David

-- 
* Books:
   RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242)
   RUBY FOR RAILS (http://www.manning.com/black)
* Ruby/Rails training
     & consulting:  Ruby Power and Light, LLC (http://www.rubypal.com)