Class: Coradoc::AsciiDoc::Model::Inline::Stem

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

Overview

Stem inline element for AsciiDoc documents.

STEM macros are mathematical notation: stem: or latexmath:

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

#contentString (readonly)

Returns The mathematical content/formula.

Returns:

  • (String)

    The mathematical content/formula



17
18
19
20
# File 'lib/coradoc/asciidoc/model/inline/stem.rb', line 17

class Stem < Base
  attribute :type, :string, default: 'stem'
  attribute :content, :string
end

#typeString (readonly)

Returns The stem type (stem, latexmath, asciimath).

Returns:

  • (String)

    The stem type (stem, latexmath, asciimath)



17
18
19
20
# File 'lib/coradoc/asciidoc/model/inline/stem.rb', line 17

class Stem < Base
  attribute :type, :string, default: 'stem'
  attribute :content, :string
end