Class: Coradoc::AsciiDoc::Model::Image::InlineImage
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
-
.promoted_positional ⇒ Array<Symbol>
Inline images use the 2nd positional slot for the role, per Asciidoctor:
image:target[alt, role, width=N, ...].
Instance Method Summary collapse
Methods inherited from Core
Methods included from Anchorable
#default_anchor, #gen_anchor, included, #initialize
Methods inherited from Base
#block_level?, #serialize_content, #simplify_block_content, #to_adoc, #to_h, visit, #visit
Class Method Details
.promoted_positional ⇒ Array<Symbol>
Inline images use the 2nd positional slot for the role, per
Asciidoctor: image:target[alt, role, width=N, ...].
17 18 19 |
# File 'lib/coradoc/asciidoc/model/image/inline_image.rb', line 17 def self.promoted_positional %i[alt role] end |
Instance Method Details
#inline? ⇒ Boolean
8 9 10 |
# File 'lib/coradoc/asciidoc/model/image/inline_image.rb', line 8 def inline? true end |