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)

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



4958
4959
4960
# File 'lib/xberg/native.rb', line 4958

def index
  @index
end

Class Method Details

.from_hash(hash) ⇒ Object



4978
4979
4980
# File 'lib/xberg/native.rb', line 4978

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

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#sheet?Boolean

Returns:

  • (Boolean)


4974
4975
4976
# File 'lib/xberg/native.rb', line 4974

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = true

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = false