class
Crst::TextRenderer
- Crst::TextRenderer
- Crst::BaseRenderer
- Reference
- Object
Overview
Renders the AST as plain text
This class traverses the document tree and converts each node to plain text representation.
Defined in:
crst/text_renderer.crInstance Method Summary
-
#render(node : Node) : String
Render a node to plain text string
Instance methods inherited from class Crst::BaseRenderer
render(node : Node) : String
render,
render_to_builder(node : Node, builder : String::Builder)
render_to_builder
Constructor methods inherited from class Crst::BaseRenderer
new(config : Config = Config.new)
new
Instance Method Detail
Render a node to plain text string
node - The node to render Returns the plain text representation of the node