summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-12-21 00:04:37 +0900
committerRandy Morgan <[email protected]>2012-12-21 00:04:37 +0900
commit6f1f408f756cfcb4705232a19edccd0c7585dc63 (patch)
tree10c077d46403a436badc8952f66f0755eb988c6b /lib
parent84f895d717d3528f5af922db7f1c379c1115d7c9 (diff)
downloadcaxlsx-6f1f408f756cfcb4705232a19edccd0c7585dc63.tar.gz
caxlsx-6f1f408f756cfcb4705232a19edccd0c7585dc63.zip
Applied patches for 1.8.7
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/workbook/worksheet/cell.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb
index c68f7e47..91808886 100644
--- a/lib/axlsx/workbook/worksheet/cell.rb
+++ b/lib/axlsx/workbook/worksheet/cell.rb
@@ -326,7 +326,8 @@ module Axlsx
def to_xml_string(r_index, c_index, str = '')
str << '<c r="' << Axlsx::cell_r(c_index, r_index) << '" s="' << @style.to_s << '" '
return str << '/>' if @value.nil?
- self.send (@type.to_s << '_type_serialization').to_sym, str
+ method = (@type.to_s << '_type_serialization').to_sym
+ self.send( method, str)
str << '</c>'
end
@@ -407,7 +408,7 @@ module Axlsx
# Cast the value into this cells data type.
# @note
- # About Time - Time in OOXML is *different* from what you might expect. The history as to why is interesting, but you can safely assume that if you are generating docs on a mac, you will want to specify Workbook.1904 as true when using time typed values.
+ # About Time - Time in OOXML is *different* from what you might expect. The history as to why is interesting, but you can safely assume that if you are generating docs on a mac, you will want to specify Workbook.1904 as true when using time typed values.
# @see Axlsx#date1904
def cast_value(v)
return nil if v.nil?