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
3320 3321 3322 |
# File 'lib/kreuzberg/native.rb', line 3320 def index @index end |
Class Method Details
.from_hash(hash) ⇒ Object
3340 3341 3342 |
# File 'lib/kreuzberg/native.rb', line 3340 def self.from_hash(hash) new(index: hash[:index] || hash["index"]) end |
Instance Method Details
#page? ⇒ Boolean
3332 |
# File 'lib/kreuzberg/native.rb', line 3332 def page? = false |
#paragraph? ⇒ Boolean
3328 |
# File 'lib/kreuzberg/native.rb', line 3328 def paragraph? = true |
#sheet? ⇒ Boolean
3336 3337 3338 |
# File 'lib/kreuzberg/native.rb', line 3336 def sheet? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#slide? ⇒ Boolean
3334 |
# File 'lib/kreuzberg/native.rb', line 3334 def = false |
#table_cell? ⇒ Boolean
3330 |
# File 'lib/kreuzberg/native.rb', line 3330 def table_cell? = false |