class Crst::Code

Overview

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"

Defined in:

crst/nodes.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String) #

[View source]

Instance Method Detail

def text : String #

The code text content


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

The code text content


[View source]