parse

parse( str, options = Hash.new ) { |row| ... }
parse( str, options = Hash.new )
Class Public methods

This method can be used to easily parse CSV out of a String. You may either provide a block which will be called with each row of the String in turn, or just use the returned Array of Arrays (when no block is given).

You pass your str to read from, and an optional options Hash containing anything ::new understands.

doc_ruby_on_rails
2015-04-01 22:07:44
Comments
Leave a Comment

Please login to continue.