Class: ReadXls::Workbook::SharedStringTable
- Inherits:
-
Object
- Object
- ReadXls::Workbook::SharedStringTable
- Defined in:
- lib/read_xls/workbook/shared_string_table.rb
Instance Attribute Summary collapse
-
#strings ⇒ Object
Returns the value of attribute strings.
Instance Method Summary collapse
- #index(i) ⇒ Object
-
#initialize(strings) ⇒ SharedStringTable
constructor
A new instance of SharedStringTable.
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
#strings ⇒ Object
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 |