This commit is contained in:
18
lib/notare/nodes/table.rb
Normal file
18
lib/notare/nodes/table.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Notare
|
||||
module Nodes
|
||||
class Table < Base
|
||||
attr_reader :rows
|
||||
|
||||
def initialize
|
||||
super
|
||||
@rows = []
|
||||
end
|
||||
|
||||
def add_row(row)
|
||||
@rows << row
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user