From: Zathras Draal Date: 2010-03-26T21:44:04+09:00 Subject: how to write in an array inside a block? Hello, i want to write all files from my local directory in an array. Something like (not working): d = Dir.new("/Volumes/System/") d.each {|x| file_list.push(x) } How can i push single filenames through d.each into an array? Thanks a lot in advance! -- Posted via http://www.ruby-forum.com/.