Class: Kreuzberg::RevisionAnchorTableCell

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
RevisionAnchor
Defined in:
lib/kreuzberg/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



3345
3346
3347
# File 'lib/kreuzberg/native.rb', line 3345

def col
  @col
end

#rowObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3345
3346
3347
# File 'lib/kreuzberg/native.rb', line 3345

def row
  @row
end

#table_indexObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3345
3346
3347
# File 'lib/kreuzberg/native.rb', line 3345

def table_index
  @table_index
end

Class Method Details

.from_hash(hash) ⇒ Object



3371
3372
3373
# File 'lib/kreuzberg/native.rb', line 3371

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)


3363
# File 'lib/kreuzberg/native.rb', line 3363

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


3359
# File 'lib/kreuzberg/native.rb', line 3359

def paragraph? = false

#sheet?Boolean

Returns:

  • (Boolean)


3367
3368
3369
# File 'lib/kreuzberg/native.rb', line 3367

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

#slide?Boolean

Returns:

  • (Boolean)


3365
# File 'lib/kreuzberg/native.rb', line 3365

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


3361
# File 'lib/kreuzberg/native.rb', line 3361

def table_cell? = true