Add builder pattern for paragraph, lists, tables

This commit is contained in:
2025-12-02 10:57:54 +01:00
parent 50c9c20eca
commit b602b2a2ff
25 changed files with 1248 additions and 47 deletions

18
lib/ezdoc/nodes/table.rb Normal file
View File

@@ -0,0 +1,18 @@
# frozen_string_literal: true
module Ezdoc
module Nodes
class Table < Base
attr_reader :rows
def initialize
super
@rows = []
end
def add_row(row)
@rows << row
end
end
end
end