Class: Xberg::RevisionAnchorParagraph

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

Overview

Body paragraph, identified by its zero-based index in the document flow.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#indexObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3793
3794
3795
# File 'lib/xberg/native.rb', line 3793

def index
  @index
end

Class Method Details

.from_hash(hash) ⇒ Object



3813
3814
3815
# File 'lib/xberg/native.rb', line 3813

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

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = true

#sheet?Boolean

Returns:

  • (Boolean)


3809
3810
3811
# File 'lib/xberg/native.rb', line 3809

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = false