Class: Workbook::SharedString
- Inherits:
-
Object
- Object
- Workbook::SharedString
- Defined in:
- lib/writeexcel/shared_string_table.rb
Instance Attribute Summary collapse
-
#str_id ⇒ Object
readonly
Returns the value of attribute str_id.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
Instance Method Summary collapse
-
#initialize(string, str_id) ⇒ SharedString
constructor
A new instance of SharedString.
Constructor Details
#initialize(string, str_id) ⇒ SharedString
Returns a new instance of SharedString.
8 9 10 |
# File 'lib/writeexcel/shared_string_table.rb', line 8 def initialize(string, str_id) @string, @str_id = string, str_id end |
Instance Attribute Details
#str_id ⇒ Object (readonly)
Returns the value of attribute str_id.
6 7 8 |
# File 'lib/writeexcel/shared_string_table.rb', line 6 def str_id @str_id end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
6 7 8 |
# File 'lib/writeexcel/shared_string_table.rb', line 6 def string @string end |