require 'csv'

text = <<EOS
Available. Released 2013, November
Available. Released 2012, October
Available. Released 2012, January
EOS

option = { :col_sep => " " ,
           :write_headers => " ",
           :headers => ["avl", "rels", "year", "month"]
         }

csv = CSV.parse(text,option)
csv.inspect # => "#<CSV::Table mode:col_or_row row_count:4>"

From the inspection I can see, default mode is set to `col_or_row`. Then
why again the method CSV::Table#by_col_or_row
(http://ruby-doc.org/stdlib-2.1.0/libdoc/csv/rdoc/CSV/Table.html#method-i-by_col_or_row)
?

It seems to me to restore the default mode once some one will use
`#by_row!` or `#by_col`. Am I right or there is other factors involved ?

Thanks

-- 
Posted via http://www.ruby-forum.com/.