diff options
| author | Randy Morgan <[email protected]> | 2011-12-07 23:42:48 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2011-12-07 23:42:48 +0900 |
| commit | 29551803ab1ed987c2c13b477a2f1d86b7c616f0 (patch) | |
| tree | 8a22c7641b699a1e0967b5836f3fec06c26f7749 /lib/axlsx/doc_props/app.rb | |
| parent | 2cd0870511ad34b51b689223cfea40daa7d1ba98 (diff) | |
| download | caxlsx-29551803ab1ed987c2c13b477a2f1d86b7c616f0.tar.gz caxlsx-29551803ab1ed987c2c13b477a2f1d86b7c616f0.zip | |
patch for issue #1
force binary encoding for zip entries.
[bug] fixed error in app.rb so extended properties can now be used.
improved support for OOXML cell element types.
Diffstat (limited to 'lib/axlsx/doc_props/app.rb')
| -rw-r--r-- | lib/axlsx/doc_props/app.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/axlsx/doc_props/app.rb b/lib/axlsx/doc_props/app.rb index 8e6bea27..aaf60092 100644 --- a/lib/axlsx/doc_props/app.rb +++ b/lib/axlsx/doc_props/app.rb @@ -102,9 +102,9 @@ module Axlsx # @option options [String] Application # @option options [String] AppVersion # @option options [Integer] DocSecurity - def initalize(options={}) + def initialize(options={}) options.each do |o| - self.send("#{o[0]}=", o[1]) if self.respond_to? o[0] + self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" end end @@ -168,7 +168,7 @@ module Axlsx builder = Nokogiri::XML::Builder.new(:encoding => ENCODING) do |xml| xml.send(:Properties, :xmlns => APP_NS, :'xmlns:vt' => APP_NS_VT) { self.instance_values.each do |name, value| - xml.send("ap:#{name}", value) + xml.send(name, value) end } end |
