Class: Writexlsx::Format::ProtectionStyle
- Inherits:
-
Object
- Object
- Writexlsx::Format::ProtectionStyle
- Defined in:
- lib/write_xlsx/format/protection_style.rb
Instance Method Summary collapse
- #hidden ⇒ Object
- #hidden=(value) ⇒ Object
-
#initialize(format) ⇒ ProtectionStyle
constructor
A new instance of ProtectionStyle.
- #locked ⇒ Object
- #locked=(value) ⇒ Object
Constructor Details
#initialize(format) ⇒ ProtectionStyle
Returns a new instance of ProtectionStyle.
7 8 9 |
# File 'lib/write_xlsx/format/protection_style.rb', line 7 def initialize(format) @format = format end |
Instance Method Details
#hidden ⇒ Object
19 20 21 |
# File 'lib/write_xlsx/format/protection_style.rb', line 19 def hidden @format.state.protection.hidden end |
#hidden=(value) ⇒ Object
23 24 25 |
# File 'lib/write_xlsx/format/protection_style.rb', line 23 def hidden=(value) @format.state.protection.hidden = value end |
#locked ⇒ Object
11 12 13 |
# File 'lib/write_xlsx/format/protection_style.rb', line 11 def locked @format.state.protection.locked end |
#locked=(value) ⇒ Object
15 16 17 |
# File 'lib/write_xlsx/format/protection_style.rb', line 15 def locked=(value) @format.state.protection.locked = value end |