diff options
| author | Jan-Hendrik Hühne <[email protected]> | 2012-05-21 14:29:31 +0200 |
|---|---|---|
| committer | Jan-Hendrik Hühne <[email protected]> | 2012-05-21 14:29:31 +0200 |
| commit | 745a47bf2a7f90e8538d011481979e3e57761787 (patch) | |
| tree | 29a985514c00c364a7a5730ebb5e3bb599e2f5a8 | |
| parent | 348d4039919620a8633d6fe3890b679603e3df81 (diff) | |
| download | caxlsx-745a47bf2a7f90e8538d011481979e3e57761787.tar.gz caxlsx-745a47bf2a7f90e8538d011481979e3e57761787.zip | |
Stores the hash_value to @password
| -rw-r--r-- | lib/axlsx/workbook/worksheet/sheet_protection.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/axlsx/workbook/worksheet/sheet_protection.rb b/lib/axlsx/workbook/worksheet/sheet_protection.rb index 2853848e..a11ba49d 100644 --- a/lib/axlsx/workbook/worksheet/sheet_protection.rb +++ b/lib/axlsx/workbook/worksheet/sheet_protection.rb @@ -40,10 +40,6 @@ module Axlsx # @default true attr_reader :format_rows - # Specifies the hash value for the password required to edit this worksheet. - # @return [String] - attr_reader :hash_value - # If 1 or true then inserting columns should not be allowed when the sheet is protected. # If 0 or false then inserting columns should be allowed when the sheet is protected. # @return [Boolean] @@ -155,7 +151,7 @@ module Axlsx def password=(v) return if v == nil - @hash_value = create_password_hash(v) + @password = create_password_hash(v) end def to_xml_string(str = '') |
