From: Hal Fulton Date: 2006-07-08T14:07:47+09:00 Subject: Re: newbie Q - calling a method for an object in an .each block? william robb wrote: > [snip] >>hand.each {|c| c.show} # dosn't produces the following, which looks to me like a dump of the array: > > =>[#, # @face="Up", @value=0, @suit="d">] > > I fear I am misunderstanding something fundamental here, as I thought > the block parameter c should get each element of the array in turn, and, > each element being an object, I could call the methods associated with > that object. Don't fear, your instincts are good. I doubt you're missing anything fundamental, you've just got some kind of (interesting) bug. The bug would seem to be in the code you haven't shown us. Can you post more? Hal