Class: Xberg::RevisionAnchorTableCell

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

Overview

Cell inside a table.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#colObject (readonly)

Returns the value of attribute col

Returns:

  • (Object)

    the current value of col



4898
4899
4900
# File 'lib/xberg/native.rb', line 4898

def col
  @col
end

#rowObject (readonly)

Returns the value of attribute row

Returns:

  • (Object)

    the current value of row



4898
4899
4900
# File 'lib/xberg/native.rb', line 4898

def row
  @row
end

#table_indexObject (readonly)

Returns the value of attribute table_index

Returns:

  • (Object)

    the current value of table_index



4898
4899
4900
# File 'lib/xberg/native.rb', line 4898

def table_index
  @table_index
end

Class Method Details

.from_hash(hash) ⇒ Object



4924
4925
4926
4927
4928
4929
4930
# File 'lib/xberg/native.rb', line 4924

def self.from_hash(hash)
  new(
    row: hash[:row] || hash["row"],
    col: hash[:col] || hash["col"],
    table_index: hash[:table_index] || hash["table_index"]
  )
end

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#sheet?Boolean

Returns:

  • (Boolean)


4920
4921
4922
# File 'lib/xberg/native.rb', line 4920

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = true