Skip to content

ngdb.link

Provides a class that links some text to an offset in a guide.

Bases: NamedTuple

A link within a Norton Guide, comprising of some text and an offset.

has_offset property

has_offset

Does this link have an associated offset into the guide?

offset instance-attribute

offset

The offset of the link.

text instance-attribute

text

The text of the link.

__bool__

__bool__()

Does the link actually link anywhere?

Returns:

Type Description
bool

True if the link links somewhere, False if not.

__int__

__int__()

Returns the offset of the link.

Returns:

Type Description
int

The offset for the link.

__str__

__str__()

Returns the text of the link.

Returns:

Type Description
str

The text for the link.