Class: ReadXls::Workbook::SharedStringTable

Inherits:
Object
  • Object
show all
Defined in:
lib/read_xls/workbook/shared_string_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(strings) ⇒ SharedStringTable

Returns a new instance of SharedStringTable.



6
7
8
# File 'lib/read_xls/workbook/shared_string_table.rb', line 6

def initialize(strings)
  self.strings = strings
end

Instance Attribute Details

#stringsObject

Returns the value of attribute strings.



4
5
6
# File 'lib/read_xls/workbook/shared_string_table.rb', line 4

def strings
  @strings
end

Instance Method Details

#index(i) ⇒ Object



10
11
12
# File 'lib/read_xls/workbook/shared_string_table.rb', line 10

def index(i)
  strings[i]
end