summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib/axlsx/util/options_parser.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/util/options_parser.rb b/lib/axlsx/util/options_parser.rb
index c4c43fa2..b6332275 100644
--- a/lib/axlsx/util/options_parser.rb
+++ b/lib/axlsx/util/options_parser.rb
@@ -1,8 +1,8 @@
module Axlsx
module OptionsParser
def parse_options(options={})
- options.each do |o|
- self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
+ options.each do |key, value|
+ self.send("#{key}=", value) if self.respond_to?("#{key}=") && value != nil
end
end
end