class

Shortcode::Tokenizer

Inherits Reference < Object

Encapsulates tokenizer parsing state and recursive sub-tree evaluation.

Constructors

new(shortcodes : Hash(String, Invocation) = Hash(String, Invocation).new, code_blocks : Hash(String, String) = Hash(String, String).new, prefix : String = "SHORTCODE", counter : Int32 = 0)
Source

Instance methods

code_blocks
Source
next_index

Returns monotonic invocation index.

Source
prefix
Source
shortcodes
Source
tokenize_text(text : String) : String

Processes text recursively tokenizing shortcodes.

Source