Sha256: 9e59b1136af84e4359883eb681bb6d2d797743708c8ab45cde302258887ba2f6

Contents?: true

Size: 183 Bytes

Versions: 9

Compression:

Stored size: 183 Bytes

Contents

module Csb
  class Cols
    def col_pairs(item)
      headers.zip(values(item))
    end

    def as_table(items)
      [headers] + items.map { |item| values(item) }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
csb-0.13.0 lib/csb/testing.rb
csb-0.12.0 lib/csb/testing.rb
csb-0.10.0 lib/csb/testing.rb
csb-0.9.0 lib/csb/testing.rb
csb-0.8.0 lib/csb/testing.rb
csb-0.7.0 lib/csb/testing.rb
csb-0.6.0 lib/csb/testing.rb
csb-0.5.1 lib/csb/testing.rb
csb-0.5.0 lib/csb/testing.rb