--- !ruby/object:RDoc::RI::MethodDescription 
aliases: []

block_params: "csv         # yield for appending"
comment: 
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: This method wraps a String you provide, or an empty default String, in a CSV object which is passed to the provided block. You can use the block to append CSV rows to the String and when the block exits, the final String will be returned.
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: Note that a passed String <b>is</b> modfied by this method. Call dup() before passing if you need a new String.
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: The <tt>options</tt> parameter can be anthing CSV::new() understands. This method understands an additional <tt>:encoding</tt> parameter when not passed a String to set the base Encoding for the output. CSV needs this hint if you plan to output non-ASCII compatible data.
full_name: CSV::generate
is_singleton: true
name: generate
params: |
  generate( str, options = Hash.new ) { |csv| ... }
  generate( options = Hash.new ) { |csv| ... }

visibility: public
