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



4095
4096
4097
# File 'lib/xberg/native.rb', line 4095

def index
  @index
end

#nameObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4095
4096
4097
# File 'lib/xberg/native.rb', line 4095

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



4120
4121
4122
# File 'lib/xberg/native.rb', line 4120

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

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#sheet?Boolean

Returns:

  • (Boolean)


4116
4117
4118
# File 'lib/xberg/native.rb', line 4116

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = false