class Crst::Text

Overview

Plain text node

Contains unformatted text content. This is the most basic inline node and typically appears as a child of formatted nodes like Emphasis or Strong.

Example:

text = Crst::Text.new("Hello World")
text.content # => "Hello World"

Defined in:

crst/nodes.cr

Constructors

Instance Method Summary

Instance methods inherited from class Crst::Node

column : Int32 | Nil column, column=(column : Int32 | Nil) column=, line : Int32 | Nil line, line=(line : Int32 | Nil) line=

Constructor Detail

def self.new(content : String) #

[View source]

Instance Method Detail

def content : String #

The text content


[View source]
def content=(content : String) #

The text content


[View source]