All checks were successful
CI Pipeline / build (pull_request) Successful in 12s
Adds these new styling and formatting nodes * strike * highlight * linebreaks * pagebreaks * Hyperlinks
21 lines
313 B
Ruby
21 lines
313 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Notare
|
|
module Nodes
|
|
class Hyperlink < Base
|
|
attr_reader :url, :rid, :runs
|
|
|
|
def initialize(url:, rid:)
|
|
super()
|
|
@url = url
|
|
@rid = rid
|
|
@runs = []
|
|
end
|
|
|
|
def add_run(run)
|
|
@runs << run
|
|
end
|
|
end
|
|
end
|
|
end
|