Class: Writexlsx::Format::ProtectionState
- Inherits:
-
Object
- Object
- Writexlsx::Format::ProtectionState
- Defined in:
- lib/write_xlsx/format/protection_state.rb
Instance Attribute Summary collapse
-
#hidden ⇒ Object
Returns the value of attribute hidden.
-
#locked ⇒ Object
Returns the value of attribute locked.
Instance Method Summary collapse
-
#initialize ⇒ ProtectionState
constructor
A new instance of ProtectionState.
- #initialize_copy(other) ⇒ Object
Constructor Details
#initialize ⇒ ProtectionState
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
#hidden ⇒ Object
Returns the value of attribute hidden.
7 8 9 |
# File 'lib/write_xlsx/format/protection_state.rb', line 7 def hidden @hidden end |
#locked ⇒ Object
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 |