Class: Anydoc::Inline
- Inherits:
-
Data
- Object
- Data
- Anydoc::Inline
- Defined in:
- lib/anydoc/document.rb,
sig/anydoc.rbs
Overview
One inline-level piece of content.
Instance Attribute Summary collapse
-
#alt ⇒ String?
readonly
Image.
-
#anchor ⇒ String?
readonly
Anchor: the anchor id.
-
#content ⇒ Array<Inline>?
readonly
Link.
-
#kind ⇒ Symbol
readonly
:text | :link | :image | :anchor | :note_ref | :line_break.
-
#note_id ⇒ String?
readonly
Note_ref: the id of the note in Document#notes.
-
#source ⇒ ImageSource?
readonly
Image.
-
#style ⇒ Style?
readonly
Text.
-
#target ⇒ LinkTarget?
readonly
Link.
-
#text ⇒ String?
readonly
Text.
Instance Attribute Details
#alt ⇒ String? (readonly)
Returns image.
81 82 83 84 |
# File 'lib/anydoc/document.rb', line 81 class Inline < Data.define( :kind, :text, :style, :content, :target, :alt, :source, :anchor, :note_id ) end |
#anchor ⇒ String? (readonly)
Returns anchor: the anchor id.
81 82 83 84 |
# File 'lib/anydoc/document.rb', line 81 class Inline < Data.define( :kind, :text, :style, :content, :target, :alt, :source, :anchor, :note_id ) end |
#content ⇒ Array<Inline>? (readonly)
Returns link.
81 82 83 84 |
# File 'lib/anydoc/document.rb', line 81 class Inline < Data.define( :kind, :text, :style, :content, :target, :alt, :source, :anchor, :note_id ) end |
#kind ⇒ Symbol (readonly)
:text | :link | :image | :anchor | :note_ref | :line_break
81 82 83 84 |
# File 'lib/anydoc/document.rb', line 81 class Inline < Data.define( :kind, :text, :style, :content, :target, :alt, :source, :anchor, :note_id ) end |
#note_id ⇒ String? (readonly)
Returns note_ref: the id of the note in Document#notes.
81 82 83 84 |
# File 'lib/anydoc/document.rb', line 81 class Inline < Data.define( :kind, :text, :style, :content, :target, :alt, :source, :anchor, :note_id ) end |
#source ⇒ ImageSource? (readonly)
Returns image.
81 82 83 84 |
# File 'lib/anydoc/document.rb', line 81 class Inline < Data.define( :kind, :text, :style, :content, :target, :alt, :source, :anchor, :note_id ) end |
#style ⇒ Style? (readonly)
Returns text.
81 82 83 84 |
# File 'lib/anydoc/document.rb', line 81 class Inline < Data.define( :kind, :text, :style, :content, :target, :alt, :source, :anchor, :note_id ) end |
#target ⇒ LinkTarget? (readonly)
Returns link.
81 82 83 84 |
# File 'lib/anydoc/document.rb', line 81 class Inline < Data.define( :kind, :text, :style, :content, :target, :alt, :source, :anchor, :note_id ) end |
#text ⇒ String? (readonly)
Returns text.
81 82 83 84 |
# File 'lib/anydoc/document.rb', line 81 class Inline < Data.define( :kind, :text, :style, :content, :target, :alt, :source, :anchor, :note_id ) end |