U:RDoc::AnyMethod[iI"filter:EFI"CSV::filter;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"OThis method is a convenience for building Unix-like filters for CSV data. ;TI"MEach row is yielded to the provided block which can alter it as needed. ;TI"MAfter the block returns, the row is appended to +output+ altered or not.;To:RDoc::Markup::BlankLine o;
; [I"KThe +input+ and +output+ arguments can be anything CSV::new() accepts ;TI"F(generally String or IO objects). If not given, they default to ;TI"(ARGF and $stdout.;T@o;
; [I"LThe +options+ parameter is also filtered down to CSV::new() after some ;TI"Bclever key parsing. Any key beginning with :in_ or ;TI"O:input_ will have that leading identifier stripped and will only ;TI"Obe used in the +options+ Hash for the +input+ object. Keys starting with ;TI"O:out_ or :output_ affect only +output+. All other keys ;TI""are assigned to both objects.;T@o;
; [I"7The :output_row_sep +option+ defaults to ;TI"4$INPUT_RECORD_SEPARATOR ($/).;T:
@fileI"lib/csv.rb;T:0@omit_headings_from_table_of_contents_below0I"—filter( options = Hash.new ) { |row| ... }
filter( input, options = Hash.new ) { |row| ... }
filter( input, output, options = Hash.new ) { |row| ... }
;TI"row;T[ I"(*args);T@"FI"CSV;TcRDoc::NormalClass00