Class: Writexlsx::Format::ProtectionState

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProtectionState

Returns a new instance of ProtectionState.



9
10
11
12
# File 'lib/write_xlsx/format/protection_state.rb', line 9

def initialize
  @locked = 1
  @hidden = 0
end

Instance Attribute Details

#hiddenObject

Returns the value of attribute hidden.



7
8
9
# File 'lib/write_xlsx/format/protection_state.rb', line 7

def hidden
  @hidden
end

#lockedObject

Returns the value of attribute locked.



7
8
9
# File 'lib/write_xlsx/format/protection_state.rb', line 7

def locked
  @locked
end

Instance Method Details

#initialize_copy(other) ⇒ Object



14
15
16
17
# File 'lib/write_xlsx/format/protection_state.rb', line 14

def initialize_copy(other)
  @locked = other.locked
  @hidden = other.hidden
end