Sha256: 7067bf93dd096d06eb09a941c4af37d31b2fdc91a5e1aa11060f54ebdeec6dab
Contents?: true
Size: 336 Bytes
Versions: 4
Compression:
Stored size: 336 Bytes
Contents
# frozen_string_literal: true module Acb class Columns def initialize @columns = [] end def push(name, **options) @columns.push(Column.new(name, **options)) end def header @columns.map(&:name) end def get_data(row) @columns.map { |column| column.digest(row) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
acb-0.1.5 | lib/acb/columns.rb |
acb-0.1.4 | lib/acb/columns.rb |
acb-0.1.3 | lib/acb/columns.rb |
acb-0.1.2 | lib/acb/columns.rb |