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)

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



4873
4874
4875
# File 'lib/xberg/native.rb', line 4873

def index
  @index
end

Class Method Details

.from_hash(hash) ⇒ Object



4893
4894
4895
# File 'lib/xberg/native.rb', line 4893

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

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = true

#sheet?Boolean

Returns:

  • (Boolean)


4889
4890
4891
# File 'lib/xberg/native.rb', line 4889

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = false