Method: Axlsx::StrData#data=
- Defined in:
- lib/axlsx/drawing/str_data.rb
#data=(values = []) ⇒ Object
Creates the val objects for this data set. I am not overly confident this is going to play nicely with time and data types.
22 23 24 25 26 27 28 |
# File 'lib/axlsx/drawing/str_data.rb', line 22 def data=(values=[]) @tag_name = values.first.is_a?(Cell) ? :strCache : :strLit values.each do |value| v = value.is_a?(Cell) ? value.value : value @pt << @type.new(:v => v) end end |