Sha256: 809c72796d78fd49102d62cf56174497d7ad40452c0411fca2a836dfbcbd7166

Contents?: true

Size: 328 Bytes

Versions: 4

Compression:

Stored size: 328 Bytes

Contents

module TableGo
  class Columns
    include Enumerable
    attr_accessor :table

    def initialize(table)
      @table, @columns = table, []
    end

    def column(name, options = {}, &block)
      @columns << Column.new(table, name, options, &block)
    end

    def each(&block)
      @columns.each(&block)
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
table_go-0.2.2 lib/table_go/columns.rb
table_go-0.2.1 lib/table_go/columns.rb
table_go-0.2.0 lib/table_go/columns.rb
table_go-0.1.9 lib/table_go/columns.rb