Class: Kreuzberg::RevisionAnchorPage

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
RevisionAnchor
Defined in:
lib/kreuzberg/native.rb

Overview

Page, identified by its zero-based index.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#indexObject (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

Returns:

  • (Boolean)


3388
# File 'lib/kreuzberg/native.rb', line 3388

def page? = true

#paragraph?Boolean

Returns:

  • (Boolean)


3384
# File 'lib/kreuzberg/native.rb', line 3384

def paragraph? = false

#sheet?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


3390
# File 'lib/kreuzberg/native.rb', line 3390

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


3386
# File 'lib/kreuzberg/native.rb', line 3386

def table_cell? = false