summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/doc_props/app.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2011-12-07 23:42:48 +0900
committerRandy Morgan <[email protected]>2011-12-07 23:42:48 +0900
commit29551803ab1ed987c2c13b477a2f1d86b7c616f0 (patch)
tree8a22c7641b699a1e0967b5836f3fec06c26f7749 /lib/axlsx/doc_props/app.rb
parent2cd0870511ad34b51b689223cfea40daa7d1ba98 (diff)
downloadcaxlsx-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.rb6
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