Class: Workbook::SharedString

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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

#stringObject (readonly)

Returns the value of attribute string


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

def string
  @string
end