Class: OpenXML::SpreadsheetML::Cell

Inherits:
Struct
  • Object
show all
Defined in:
lib/xlsx/sheet_data.rb,
lib/xlsx/sheet_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#formulaObject

Returns the value of attribute formula

Returns:

  • (Object)

    the current value of formula



5
6
7
# File 'lib/xlsx/sheet_data.rb', line 5

def formula
  @formula
end

#shared_strings_pointerObject

Returns the value of attribute shared_strings_pointer

Returns:

  • (Object)

    the current value of shared_strings_pointer



5
6
7
# File 'lib/xlsx/sheet_data.rb', line 5

def shared_strings_pointer
  @shared_strings_pointer
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



5
6
7
# File 'lib/xlsx/sheet_data.rb', line 5

def type
  @type
end

#vObject

Returns the value of attribute v

Returns:

  • (Object)

    the current value of v



5
6
7
# File 'lib/xlsx/sheet_data.rb', line 5

def v
  @v
end

Instance Method Details

#valueObject



8
9
10
11
# File 'lib/xlsx/sheet_data.rb', line 8

def value
  return shared_strings_pointer[self.v.to_i] if self.type == 's'
  self.v
end