summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-01-10 18:27:27 +0900
committerRandy Morgan <[email protected]>2013-01-10 18:27:27 +0900
commit58e8dd8a2b1a4a85ac77bf680914daf16eb695f1 (patch)
tree980bf825b4b5c5fb55ef55b1b7f0ea2eb9b13533 /lib/axlsx.rb
parentf7eeb07abfa1c58552847b2b38787f44cd3e2d24 (diff)
downloadcaxlsx-58e8dd8a2b1a4a85ac77bf680914daf16eb695f1.tar.gz
caxlsx-58e8dd8a2b1a4a85ac77bf680914daf16eb695f1.zip
reduced processing of 3000 rows from 3+ seconds to just under 2
Diffstat (limited to 'lib/axlsx.rb')
-rw-r--r--lib/axlsx.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/axlsx.rb b/lib/axlsx.rb
index 91391db5..c5fcfed0 100644
--- a/lib/axlsx.rb
+++ b/lib/axlsx.rb
@@ -124,5 +124,10 @@ module Axlsx
s = s.capitalize if all_caps
s.gsub(/_(.)/){ $1.upcase }
end
-
+ def self.trust_input
+ @trust_input ||= false
+ end
+ def self.trust_input=(v)
+ @trust_input=v
+ end
end