All checks were successful
CI Pipeline / build (pull_request) Successful in 12s
20 lines
306 B
Ruby
20 lines
306 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Ezdoc
|
|
module Nodes
|
|
class Paragraph < Base
|
|
attr_reader :runs, :style
|
|
|
|
def initialize(runs = [], style: nil)
|
|
super()
|
|
@runs = runs
|
|
@style = style
|
|
end
|
|
|
|
def add_run(run)
|
|
@runs << run
|
|
end
|
|
end
|
|
end
|
|
end
|