From: Igor Pirnovar Date: 2012-10-29T03:32:24+09:00 Subject: Re: Passing folder as argument ARGV? oops, don't miss the '}' at the end p Dir["#{File.expand_path(my_var)}/*"].each.map { |f| File.basename(f) } -- Posted via http://www.ruby-forum.com/.