Class: Coradoc::AsciiDoc::Model::Inline::Small

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

Overview

Small text inline element for AsciiDoc documents.

Small text is rendered with a size role: [.small]#text#.

Examples:

Create small text

small = Coradoc::AsciiDoc::Model::Inline::Small.new
small.text = "Fine print"
small.to_adoc # => "[.small]#Fine print#"

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 make smaller.

Returns:

  • (String)

    The text content to make smaller



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

class Small < Base
  attribute :text, :string
end