21 lines
361 B
Ruby
21 lines
361 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Notare
|
|
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
|