class Luce::LinkParser

Defined in:

luce/link_parser.cr

Constructors

Instance Method Summary

Instance methods inherited from class Luce::TextParser

[](range : Range) : String [], advance : Nil advance, advance_by(length : Int32) : Nil advance_by, char_at(position : Int32 | Nil = nil) : Int32 char_at, done? : Bool done?, move_through_whitespace(multiline : Bool = false) : Int32 move_through_whitespace, pos : Int32 pos, size : Int32 size, source : String source

Constructor methods inherited from class Luce::TextParser

new(source : String) new

Constructor Detail

def self.new(source : String) #

Instance Method Detail

def destination : String | Nil #

Link destination


def label : String | Nil #

Link label


def parse_definitions : Nil #

Parses source to a link reference definition


def parse_label : Bool #

Parses the link label, returns true if there is a valid link label.


def title : String | Nil #

Link title


def unconsumed_lines : Int32 #

How many lines of the source have been consumed by link reference definition.


def valid? : Bool #

If there is a valid link formed.