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



3985
3986
3987
# File 'lib/xberg/native.rb', line 3985

def index
  @index
end

Class Method Details

.from_hash(hash) ⇒ Object



4006
4007
4008
# File 'lib/xberg/native.rb', line 4006

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

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = true

#sheet?Boolean

Returns:

  • (Boolean)


4002
4003
4004
# File 'lib/xberg/native.rb', line 4002

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = false