Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > csvライブラリ > CSVクラス > filter
filter(options = Hash.new) {|row| ... }
filter(input, options = Hash.new) {|row| ... }
filter(input, output, options = Hash.new) {|row| ... }
このメソッドは CSV データに対して Unix のツール群のようなフィルタを構築するのに便利です。
Each row is yielded to the provided block which can alter it as needed. After the block returns, the row is appended to +output+ altered or not.
[SEE_ALSO] CSV.new