Class: Writexlsx::Format::ProtectionStyle

Inherits:
Object
  • Object
show all
Defined in:
lib/write_xlsx/format/protection_style.rb

Instance Method Summary collapse

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

#hiddenObject



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

#lockedObject



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