summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet
diff options
context:
space:
mode:
authorochko <[email protected]>2012-04-04 00:34:24 +0900
committerochko <[email protected]>2012-04-04 00:34:24 +0900
commit78e2f076f0b0a1bbe651a3ce53075ae2cf778284 (patch)
tree9ae5cd60bdfbce0e494987d4b4c8ebc731fde7fe /lib/axlsx/stylesheet
parent9950bced40b5b9593212a6b5e3718665c82a5898 (diff)
downloadcaxlsx-78e2f076f0b0a1bbe651a3ce53075ae2cf778284.tar.gz
caxlsx-78e2f076f0b0a1bbe651a3ce53075ae2cf778284.zip
shared string should be faster than non-shared string serialization
Diffstat (limited to 'lib/axlsx/stylesheet')
-rw-r--r--lib/axlsx/stylesheet/color.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/axlsx/stylesheet/color.rb b/lib/axlsx/stylesheet/color.rb
index 78171607..497e2d4d 100644
--- a/lib/axlsx/stylesheet/color.rb
+++ b/lib/axlsx/stylesheet/color.rb
@@ -72,5 +72,9 @@ module Axlsx
str << "/>"
end
+ def signature
+ "#{@rgb}:#{auto}:#{@tint}"
+ end
+
end
end