Sha256: 30677289b2054b52851002476e7671be69fd773c174b4c09444c4cfa25563755
Contents?: true
Size: 840 Bytes
Versions: 12
Compression:
Stored size: 840 Bytes
Contents
# encoding: utf-8 module Infoboxer module Tree # Represents italic text. class Italic < Compound end # Represents bold text. class Bold < Compound end # Represents bold italic text (and no, it's not a comb of bold+italic, # from Wikipedia's markup point of view). class BoldItalic < Compound end # Base class for internal/external links, class Link < Compound def initialize(link, label = nil) super(label || Nodes.new([Text.new(link)]), link: link) end #@!attribute [r] link def_readers :link end # External link. Has other nodes as a contents, and, err, link (url). class ExternalLink < Link #@!attribute [r] url # synonym for `#link` alias_method :url, :link end end end require_relative 'wikilink'
Version data entries
12 entries across 12 versions & 1 rubygems