Class: Kreuzberg::RevisionAnchorPage
- Inherits:
-
Data
- Object
- Data
- Kreuzberg::RevisionAnchorPage
- Extended by:
- T::Sig
- Includes:
- RevisionAnchor
- Defined in:
- lib/kreuzberg/native.rb
Overview
Page, identified by its zero-based index.
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
3376 3377 3378 |
# File 'lib/kreuzberg/native.rb', line 3376 def index @index end |
Class Method Details
.from_hash(hash) ⇒ Object
3396 3397 3398 |
# File 'lib/kreuzberg/native.rb', line 3396 def self.from_hash(hash) new(index: hash[:index] || hash["index"]) end |
Instance Method Details
#page? ⇒ Boolean
3388 |
# File 'lib/kreuzberg/native.rb', line 3388 def page? = true |
#paragraph? ⇒ Boolean
3384 |
# File 'lib/kreuzberg/native.rb', line 3384 def paragraph? = false |
#sheet? ⇒ Boolean
3392 3393 3394 |
# File 'lib/kreuzberg/native.rb', line 3392 def sheet? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#slide? ⇒ Boolean
3390 |
# File 'lib/kreuzberg/native.rb', line 3390 def = false |
#table_cell? ⇒ Boolean
3386 |
# File 'lib/kreuzberg/native.rb', line 3386 def table_cell? = false |