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

21 lines
329 B
Ruby

# frozen_string_literal: true
module Ezdoc
module Nodes
class List < Base
attr_reader :items, :type, :num_id
def initialize(type:, num_id:)
super()
@type = type
@num_id = num_id
@items = []
end
def add_item(item)
@items << item
end
end
end
end