Files
Notare/lib/ezdoc/nodes/list_item.rb

21 lines
360 B
Ruby

# 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