It has different behaviour. In my example file is empty if `csv.<<` is never called, in suggested example it contains BOM anyway.printercu (Max Melentiev)
WDYT about adding `file_header` option or something like this? It's quite tricky to add this in streaming mode: ```ruby CSV.open(file, 'wb', encoding: 'utf-16le', headers: headers_row, write_headers: true) do |csv| bom_written ...printercu (Max Melentiev)
Hi! While Enumerable does not provide `#compact` method, it requires changing code in some cases to substitute array with enumerator. For example, to reduce memory usage it's usual to change `large_array.map { to_heavy_object }.cha...printercu (Max Melentiev)
matz (Yukihiro Matsumoto) wrote: > Considering the combination of OOP and FP, it seems a good idea to adding both forward and reverse combination of procs. So we pick Groovy way (adding `<<` and `>>` methods to `Proc`). What do you t...printercu (Max Melentiev)
Hi! Every instance of syslog logger uses same program_name as first initialized one, because they all share single instance of Syslog (https://github.com/ruby/ruby/blob/trunk/ext/syslog/lib/syslog/logger.rb#L195) ~~~ ruby logger1 ...printercu (Max Melentiev)