Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_8_7_330) is shown here.
generate(str_or_writable, fs = ',', rs = nil, &block)
public
Given block is called with the writer instance. str_or_writable must
handle ‘<<(string)’.
# File lib/csv.rb, line 674
def Writer.generate(str_or_writable, fs = ',', rs = nil, &block)
writer = Writer.create(str_or_writable, fs, rs)
if block
yield(writer)
writer.close
nil
else
writer
end
end