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



3841
3842
3843
# File 'lib/kreuzberg/native.rb', line 3841

def index
  @index
end

Class Method Details

.from_hash(hash) ⇒ Object



3861
3862
3863
# File 'lib/kreuzberg/native.rb', line 3861

def self.from_hash(hash)
  new(index: hash[:index] || hash["index"])
end

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = true

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#sheet?Boolean

Returns:

  • (Boolean)


3857
3858
3859
# File 'lib/kreuzberg/native.rb', line 3857

def sheet? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = false