summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-03-28 00:52:30 +0900
committerRandy Morgan <[email protected]>2012-03-28 00:52:30 +0900
commitec9d3b896a2b07cdcb8198c2227df8dac3b83cdb (patch)
treebb0da233e87c50d6560fb236543e6fa2a12fe642 /lib/axlsx/stylesheet
parentbe2d7bee9b9236fff4a378db8770c3ae793e8422 (diff)
downloadcaxlsx-ec9d3b896a2b07cdcb8198c2227df8dac3b83cdb.tar.gz
caxlsx-ec9d3b896a2b07cdcb8198c2227df8dac3b83cdb.zip
Still not fast enough?
``` user system total real axlsx_noautowidth 0.760000 0.020000 0.780000 ( 0.885482) axlsx 3.560000 0.130000 3.690000 ( 4.158594) axlsx_shared 11.610000 0.180000 11.790000 ( 13.208945) axlsx_stream 3.450000 0.120000 3.570000 ( 3.920745) csv 0.240000 0.010000 0.250000 ( 0.269822)
Diffstat (limited to 'lib/axlsx/stylesheet')
-rw-r--r--lib/axlsx/stylesheet/color.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/axlsx/stylesheet/color.rb b/lib/axlsx/stylesheet/color.rb
index 5d3e60ca..2a08fd3c 100644
--- a/lib/axlsx/stylesheet/color.rb
+++ b/lib/axlsx/stylesheet/color.rb
@@ -62,12 +62,11 @@ module Axlsx
# def indexed=(v) Axlsx::validate_unsigned_integer v; @indexed = v end
def to_xml_string
- str = ["<color "]
+ str = "<color "
self.instance_values.each do |key, value|
- str << "%s='%s' " % [key, value]
+ str << key << '="' << value.to_s << '" '
end
str << "/>"
- str.join
end
# Serializes the color