diff options
| author | Randy Morgan <[email protected]> | 2012-04-23 09:38:49 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-04-23 09:38:49 +0900 |
| commit | 372fb7b2fe3408e8aab9b1b4ae5285aa98a8a945 (patch) | |
| tree | 1a67fcc7cd7135fb6da182ddee06e094f2ff6540 /lib/axlsx/stylesheet/xf.rb | |
| parent | 050f4cfac1b3a52da16b98f3a494083f0de5348f (diff) | |
| download | caxlsx-372fb7b2fe3408e8aab9b1b4ae5285aa98a8a945.tar.gz caxlsx-372fb7b2fe3408e8aab9b1b4ae5285aa98a8a945.zip | |
first stage refactoring for Style#add_style [inprogress]
Diffstat (limited to 'lib/axlsx/stylesheet/xf.rb')
| -rw-r--r-- | lib/axlsx/stylesheet/xf.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/axlsx/stylesheet/xf.rb b/lib/axlsx/stylesheet/xf.rb index 59329a63..963f271f 100644 --- a/lib/axlsx/stylesheet/xf.rb +++ b/lib/axlsx/stylesheet/xf.rb @@ -85,6 +85,7 @@ module Axlsx # @option options [CellProtection] protection def initialize(options={}) options.each do |o| + next if o[1].nil? self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" end end @@ -139,5 +140,6 @@ module Axlsx str << '</xf>' end + end end |
