class Luce::LinkReference

Overview

A link reference definition.

Defined in:

luce/document.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(label : String, destination : String, title : String | Nil) #

Construct a new LinkReference, with all necessary fields.

If the parsed link reference definition does not include a title, use nil for the title parameter.


Instance Method Detail

def destination : String #

def label : String #

The link label.

Temporarily, this class is also being used to represent the link data for an inline link (the destination and title), but this should change before the shard is released.


def title : String | Nil #

The link title.