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