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)

rubocop:disable Lint/UselessMethodDefinition



4261
4262
4263
# File 'lib/xberg/native.rb', line 4261

def col
  @col
end

#rowObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4261
4262
4263
# File 'lib/xberg/native.rb', line 4261

def row
  @row
end

#table_indexObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4261
4262
4263
# File 'lib/xberg/native.rb', line 4261

def table_index
  @table_index
end

Class Method Details

.from_hash(hash) ⇒ Object



4290
4291
4292
4293
4294
4295
4296
# File 'lib/xberg/native.rb', line 4290

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)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#sheet?Boolean

Returns:

  • (Boolean)


4286
4287
4288
# File 'lib/xberg/native.rb', line 4286

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = true