From: Matt Brooks Date: 2009-09-16T23:35:04+09:00 Subject: Re: Array of Hashes in an array of hashes - Complicated! John W Higgins wrote: > > I'm sure some folks will think this is a foolish option - it's just the > way > I would approach it...... > > John Hey John, This is great. Not foolish at all. I think this will work great for this, and I have already started implementing it and it looks to work good so far. All I am doing is adding to an array each signal object I create, as 7stud mentioned, and then adding to each object till the next signal is reached. I do have a quick question, I thought the way method_missing worked, was you could call that method using any method name, so I tried it for heck of it just because I never used it, i did blah(:parameter_name), and it complained that there was no blah method, which I thought would cause the method_missing method to run. I changed the method to be get_val(name, *args) and it worked. What is the role of the *args as an input? Does this allow me to ask for an array of parameters at once? Or is something to do with the missing_method thing? Thanks again, Matt -- Posted via http://www.ruby-forum.com/.