diff options
| author | Randy Morgan <[email protected]> | 2011-11-26 13:20:57 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2011-11-26 13:20:57 +0900 |
| commit | 11303a4d6664d9a7ff7bc408035d2ab70378a375 (patch) | |
| tree | 51c675ae3ab8cd6c1afd7087145261b1eb2ec54c /lib/axlsx/stylesheet/cell_protection.rb | |
| parent | 044afe5a35db42cefce4f18a0fecc3da90cab1b5 (diff) | |
| download | caxlsx-11303a4d6664d9a7ff7bc408035d2ab70378a375.tar.gz caxlsx-11303a4d6664d9a7ff7bc408035d2ab70378a375.zip | |
adding in support for ruby 1.9.3
release version 1.0.9
Diffstat (limited to 'lib/axlsx/stylesheet/cell_protection.rb')
| -rw-r--r-- | lib/axlsx/stylesheet/cell_protection.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/axlsx/stylesheet/cell_protection.rb b/lib/axlsx/stylesheet/cell_protection.rb index 7f0f4db8..e1c6183f 100644 --- a/lib/axlsx/stylesheet/cell_protection.rb +++ b/lib/axlsx/stylesheet/cell_protection.rb @@ -6,11 +6,11 @@ module Axlsx # specifies locking for cells that have the style containing this protection # @return [Boolean] - attr_accessor :hidden + attr_reader :hidden # specifies if the cells that have the style containing this protection # @return [Boolean] - attr_accessor :locked + attr_reader :locked # Creates a new CellProtection # @option options [Boolean] hidden value for hidden protection @@ -20,7 +20,10 @@ module Axlsx self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" end end + + # @see hidden def hidden=(v) Axlsx::validate_boolean v; @hidden = v end + # @see locked def locked=(v) Axlsx::validate_boolean v; @locked = v end # Serializes the cell protection |
