summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-01-10 18:39:14 +0900
committerRandy Morgan <[email protected]>2013-01-10 18:39:14 +0900
commit8f76f395b6d233827e29104052c3d775a5c885ad (patch)
tree12453a9145cd41e44d16ad018350d3418724f193 /lib/axlsx.rb
parent41fec1cf9993d351eb5d5961930789b36fe66316 (diff)
downloadcaxlsx-8f76f395b6d233827e29104052c3d775a5c885ad.tar.gz
caxlsx-8f76f395b6d233827e29104052c3d775a5c885ad.zip
added documentation for trust_input and gemspec update.
Diffstat (limited to 'lib/axlsx.rb')
-rw-r--r--lib/axlsx.rb13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/axlsx.rb b/lib/axlsx.rb
index c5fcfed0..ed7a141f 100644
--- a/lib/axlsx.rb
+++ b/lib/axlsx.rb
@@ -124,10 +124,19 @@ module Axlsx
s = s.capitalize if all_caps
s.gsub(/_(.)/){ $1.upcase }
end
+
+
+ # Instructs the serializer to not try to escape cell value input.
+ # This will give you a huge speed bonus, but if you content has <, > or other xml character data
+ # the workbook will be invalid and excel will complain.
def self.trust_input
@trust_input ||= false
end
- def self.trust_input=(v)
- @trust_input=v
+
+ # @param[Boolean] trust_me A boolean value indicating if the cell value content is to be trusted
+ # @return [Boolean]
+ # @see Axlsx::trust_input
+ def self.trust_input=(trust_me)
+ @trust_input = trust_me
end
end