Implement nested lists
All checks were successful
CI Pipeline / build (pull_request) Successful in 13s

This commit is contained in:
2025-12-02 15:00:39 +01:00
parent 6a54f9f8da
commit 75b3a163c7
7 changed files with 222 additions and 29 deletions

View File

@@ -3,13 +3,14 @@
module Notare
module Nodes
class ListItem < Base
attr_reader :runs, :list_type, :num_id
attr_reader :runs, :list_type, :num_id, :level
def initialize(runs = [], list_type:, num_id:)
def initialize(runs = [], list_type:, num_id:, level: 0)
super()
@runs = runs
@list_type = list_type
@num_id = num_id
@level = level
end
def add_run(run)