Class: Anydoc::Inline

Inherits:
Data
  • Object
show all
Defined in:
lib/anydoc/document.rb,
sig/anydoc.rbs

Overview

One inline-level piece of content.

Instance Attribute Summary collapse

Instance Attribute Details

#altString? (readonly)

Returns image.

Returns:

  • (String, nil)

    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

#anchorString? (readonly)

Returns anchor: the anchor id.

Returns:

  • (String, nil)

    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

#contentArray<Inline>? (readonly)

Returns link.

Returns:

  • (Array<Inline>, nil)

    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

#kindSymbol (readonly)

:text | :link | :image | :anchor | :note_ref | :line_break

Returns:

  • (Symbol)


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_idString? (readonly)

Returns note_ref: the id of the note in Document#notes.

Returns:



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

#sourceImageSource? (readonly)

Returns image.

Returns:



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

#styleStyle? (readonly)

Returns text.

Returns:



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

#targetLinkTarget? (readonly)

Returns link.

Returns:



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

#textString? (readonly)

Returns text.

Returns:

  • (String, nil)

    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