Class: Xberg::RevisionAnchorSlide

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



4075
4076
4077
# File 'lib/xberg/native.rb', line 4075

def index
  @index
end

Class Method Details

.from_hash(hash) ⇒ Object



4096
4097
4098
# File 'lib/xberg/native.rb', line 4096

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

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#sheet?Boolean

Returns:

  • (Boolean)


4092
4093
4094
# File 'lib/xberg/native.rb', line 4092

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = true

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = false