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



4235
4236
4237
# File 'lib/xberg/native.rb', line 4235

def index
  @index
end

Class Method Details

.from_hash(hash) ⇒ Object



4256
4257
4258
# File 'lib/xberg/native.rb', line 4256

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

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = true

#sheet?Boolean

Returns:

  • (Boolean)


4252
4253
4254
# File 'lib/xberg/native.rb', line 4252

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = false