From: Martin DeMello Date: 2009-04-03T07:29:25+09:00 Subject: Re: hash with files On Fri, Apr 3, 2009 at 3:38 AM, Derek Smith wrote: > Hello all, > > I am trying to run File.size? on each file in my hash, yet I am getting > this error. > Goal ==> get file sizes stored in hash from Dir.glob > > $ ruby test.rb > yes > test.rb:49:in `size?': can't convert Array into String (TypeError) >        from test.rb:49 >        from test.rb:48:in `each_value' >        from test.rb:48 Dir.glob returns an array of matches. Could you post the code where you're constructing the hash? martin