class Infoboxer::Tree::Link

Base class for internal/external links,

Public Class Methods

new(link, label = nil, **attr) click to toggle source
Calls superclass method Infoboxer::Tree::Compound::new
# File lib/infoboxer/tree/inline.rb, line 20
def initialize(link, label = nil, **attr)
  super(label || Nodes.new([Text.new(link)]), link: link, **attr)
end