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



4310
4311
4312
# File 'lib/xberg/native.rb', line 4310

def index
  @index
end

Class Method Details

.from_hash(hash) ⇒ Object



4331
4332
4333
# File 'lib/xberg/native.rb', line 4331

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

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = true

#sheet?Boolean

Returns:

  • (Boolean)


4327
4328
4329
# File 'lib/xberg/native.rb', line 4327

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = false