All checks were successful
CI Pipeline / build (pull_request) Successful in 13s
22 lines
388 B
Ruby
22 lines
388 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Notare
|
|
module Nodes
|
|
class Table < Base
|
|
attr_reader :rows, :style, :layout, :columns
|
|
|
|
def initialize(style: nil, layout: nil, columns: nil)
|
|
super()
|
|
@rows = []
|
|
@style = style
|
|
@layout = layout
|
|
@columns = columns
|
|
end
|
|
|
|
def add_row(row)
|
|
@rows << row
|
|
end
|
|
end
|
|
end
|
|
end
|