Class: Xberg::RevisionAnchorSheet

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



4426
4427
4428
# File 'lib/xberg/native.rb', line 4426

def index
  @index
end

#nameObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4426
4427
4428
# File 'lib/xberg/native.rb', line 4426

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



4451
4452
4453
# File 'lib/xberg/native.rb', line 4451

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

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#sheet?Boolean

Returns:

  • (Boolean)


4447
4448
4449
# File 'lib/xberg/native.rb', line 4447

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = false