Class: Kreuzberg::RevisionAnchorSheet

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

Overview

Spreadsheet cell or range, identified by sheet index and optional name.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#indexObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3891
3892
3893
# File 'lib/kreuzberg/native.rb', line 3891

def index
  @index
end

#nameObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3891
3892
3893
# File 'lib/kreuzberg/native.rb', line 3891

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



3914
3915
3916
# File 'lib/kreuzberg/native.rb', line 3914

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

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#sheet?Boolean

Returns:

  • (Boolean)


3910
3911
3912
# File 'lib/kreuzberg/native.rb', line 3910

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = false