Returns the new Hash formed by adding each header-value pair in self
as a key-value pair in the Hash.
source = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" table = CSV.parse(source, headers: true) row = table[0] row.to_h # => {"Name"=>"foo", "Value"=>"0"}
Header order is preserved, but repeated headers are ignored:
source = "Name,Name,Name\nFoo,Bar,Baz\n" table = CSV.parse(source, headers: true) row = table[0] row.to_h # => {"Name"=>"Foo"}
Returns the table as an Array
of Arrays. Headers will be the first row, then all of the field rows will follow.
Contains all discovered TupleSpaces except for the primary.
Contains all discovered TupleSpaces except for the primary.
Convert back to the [name, version, platform] tuple