Class: Coradoc::AsciiDoc::Model::Inline::AttributeReference

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

Overview

Attribute reference inline element for AsciiDoc documents.

Attribute references insert the value of a document attribute.

Examples:

Create an attribute reference

ref = Coradoc::AsciiDoc::Model::Inline::AttributeReference.new
ref.name = "author"
ref.to_adoc # => "{author}"

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

#nameString (readonly)

Returns The attribute name to reference.

Returns:

  • (String)

    The attribute name to reference



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

class AttributeReference < Base
  attribute :name, :string
end