Files
Notare/lib/notare/nodes/list_item.rb
mathias234 75b3a163c7
All checks were successful
CI Pipeline / build (pull_request) Successful in 13s
Implement nested lists
2025-12-02 15:00:39 +01:00

22 lines
402 B
Ruby

# frozen_string_literal: true
module Notare
module Nodes
class ListItem < Base
attr_reader :runs, :list_type, :num_id, :level
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)
@runs << run
end
end
end
end