Class: Kreuzberg::RevisionAnchorParagraph
- Inherits:
-
Data
- Object
- Data
- Kreuzberg::RevisionAnchorParagraph
- Extended by:
- T::Sig
- Includes:
- RevisionAnchor
- Defined in:
- lib/kreuzberg/native.rb
Overview
Body paragraph, identified by its zero-based index in the document flow.
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#index ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
3785 3786 3787 |
# File 'lib/kreuzberg/native.rb', line 3785 def index @index end |
Class Method Details
.from_hash(hash) ⇒ Object
3805 3806 3807 |
# File 'lib/kreuzberg/native.rb', line 3805 def self.from_hash(hash) new(index: hash[:index] || hash["index"]) end |
Instance Method Details
#page? ⇒ Boolean
3797 |
# File 'lib/kreuzberg/native.rb', line 3797 def page? = false |
#paragraph? ⇒ Boolean
3793 |
# File 'lib/kreuzberg/native.rb', line 3793 def paragraph? = true |
#sheet? ⇒ Boolean
3801 3802 3803 |
# File 'lib/kreuzberg/native.rb', line 3801 def sheet? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#slide? ⇒ Boolean
3799 |
# File 'lib/kreuzberg/native.rb', line 3799 def = false |
#table_cell? ⇒ Boolean
3795 |
# File 'lib/kreuzberg/native.rb', line 3795 def table_cell? = false |