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