Class: Kreuzberg::RevisionAnchorSlide

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

Overview

Presentation slide, 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



3401
3402
3403
# File 'lib/kreuzberg/native.rb', line 3401

def index
  @index
end

Class Method Details

.from_hash(hash) ⇒ Object



3421
3422
3423
# File 'lib/kreuzberg/native.rb', line 3421

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

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#sheet?Boolean

Returns:

  • (Boolean)


3417
3418
3419
# File 'lib/kreuzberg/native.rb', line 3417

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = true

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = false