Class: Coradoc::AsciiDoc::Model::Inline::Underline

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/asciidoc/model/inline/underline.rb

Overview

Underline inline text formatting for AsciiDoc documents.

Underlined text is rendered with underscores: [u]#text#.

Examples:

Create underlined text

underline = Coradoc::AsciiDoc::Model::Inline::Underline.new
underline.text = "Underlined"
underline.to_adoc # => "[u]#Underlined#"

Instance Attribute Summary collapse

Attributes inherited from Base

#id

Method Summary

Methods inherited from Base

#inline?

Methods inherited from Base

#block_level?, #inline?, #serialize_content, #simplify_block_content, #to_adoc, #to_h, visit, #visit

Instance Attribute Details

#textString (readonly)

Returns The text content to underline.

Returns:

  • (String)

    The text content to underline



19
20
21
# File 'lib/coradoc/asciidoc/model/inline/underline.rb', line 19

class Underline < Base
  attribute :text, :string
end