Class: Xberg::RevisionAnchorPage

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
RevisionAnchor
Defined in:
lib/xberg/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



3849
3850
3851
# File 'lib/xberg/native.rb', line 3849

def index
  @index
end

Class Method Details

.from_hash(hash) ⇒ Object



3869
3870
3871
# File 'lib/xberg/native.rb', line 3869

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

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


3861
# File 'lib/xberg/native.rb', line 3861

def page? = true

#paragraph?Boolean

Returns:

  • (Boolean)


3857
# File 'lib/xberg/native.rb', line 3857

def paragraph? = false

#sheet?Boolean

Returns:

  • (Boolean)


3865
3866
3867
# File 'lib/xberg/native.rb', line 3865

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

#slide?Boolean

Returns:

  • (Boolean)


3863
# File 'lib/xberg/native.rb', line 3863

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


3859
# File 'lib/xberg/native.rb', line 3859

def table_cell? = false