[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...

Issue #10333 has been updated by Koichi Sasada.

9 messages 2014/10/07

[ruby-core:65654] [ruby-trunk - Bug #10246] [Feedback] CSV.parse(csv_string, headers: col_headers) reports undefined method `table'

From: shibata.hiroshi@...
Date: 2014-10-13 08:05:20 UTC
List: ruby-core #65654
Issue #10246 has been updated by Hiroshi SHIBATA.

Status changed from Open to Feedback

----------------------------------------
Bug #10246: CSV.parse(csv_string, headers: col_headers) reports undefined method `table'
https://bugs.ruby-lang.org/issues/10246#change-49386

* Author: Justin Gordon
* Status: Feedback
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: 2.1.2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
I've detailed repro steps here: http://railsonmaui-octopress.dev/blog/2014/09/15/pry-ruby-array-zip-csv-and-the-hash-constructor/

~~~
[12] (pry) main: 0> csv = CSV.parse(csv_string, headers: col_headers)
(pry) output error: #<NoMethodError: undefined method `table' for #<Object:0x007fdbfc8d5588>>
~~~

The CSV docs clearly state that the initialize method takes an option :headers




-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next