2015-01-02 [Ruby]ディレクトリの中身を見る ruby 指定ディレクトリ内の *.log ファイルに対して処理を行いたい場合。 Dir::foreach('./srcDir') {|f| if File::extname(f) == '.log' #処理 end }