class

Crst::Code

Inherits Crst::Node < Reference < Object

Inline code node

Represents code or literal text that should be displayed verbatim. Created from RST using double backticks: code

Example:

# RST: "Use the ``puts`` method"
code = Crst::Code.new("puts")
code.text # => "puts"

Constructors

new(text : String)
Source

Instance methods

text

The code text content

Source
text=(text : String)

The code text content

Source