From 745a47bf2a7f90e8538d011481979e3e57761787 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Hühne Date: Mon, 21 May 2012 14:29:31 +0200 Subject: Stores the hash_value to @password --- lib/axlsx/workbook/worksheet/sheet_protection.rb | 6 +----- 1 file changed, 1 insertion(+), 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 = '') -- cgit v1.2.3