All checks were successful
CI Pipeline / build (pull_request) Successful in 13s
22 lines
402 B
Ruby
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
|