class Poor::Stream

Overview

Markup processor which enables processing markup elements on the fly by sending the token stream directly to the given formatter. This avoids creating the intermediate markup tree.

Defined in:

builder.cr

Constructors

Instance Method Summary

Instance methods inherited from class Poor::TreeMaker

add(element : Markup) add, close(element : Markup = @parents.last) close, close_children(element : Markup) close_children, close_element(element : Markup) close_element, finish(element : Markup = @parents.last) finish, finish_children(element : Markup) finish_children, open(element : Markup) open, open_element(element : Markup) open_element, parent parent, start(element : Markup) start

Constructor Detail

def self.new(formatter : Poor::Formatter | Array(Markup | Token)) #

[View source]

Instance Method Detail

def close_element(element : Markup) #

[View source]
def open_element(element : Markup) #

[View source]