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

View File

@@ -0,0 +1,18 @@
# frozen_string_literal: true
module Ezdoc
module Nodes
class Paragraph < Base
attr_reader :runs
def initialize(runs = [])
super()
@runs = runs
end
def add_run(run)
@runs << run
end
end
end
end