From: David Naseby Date: 2004-01-29T12:26:54+09:00 Subject: Re: I'm... confused >-----Original Message----- >From: Michael campbell >Given: > >x = { > :a => "foo", > :b => [ :c => "c", :d => "d" ] >} The array generation can be read as: [ :c => "c", :d => "d" ] # === Array.new( :c => "c", :d => "d" ) Now key => val, key2 => val2 in any method argument is syntactic sugar for a hash. [ xx ] is syntactic sugar for Array.new( xx ), with xx as the argument. So it all works out, through the layers of sweetness, to be just what you expected. David http://homepages.ihug.com.au/~naseby/