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,20 @@
# frozen_string_literal: true
module Ezdoc
module Nodes
class ListItem < Base
attr_reader :runs, :list_type, :num_id
def initialize(runs = [], list_type:, num_id:)
super()
@runs = runs
@list_type = list_type
@num_id = num_id
end
def add_run(run)
@runs << run
end
end
end
end