Class: Excel::Protection

Inherits:
Object
  • Object
show all
Defined in:
lib/ru_excel/formatting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProtection

Returns a new instance of Protection.



225
226
227
228
# File 'lib/ru_excel/formatting.rb', line 225

def initialize
    @cell_locked = 1
    @formula_hidden = 0
end

Instance Attribute Details

#cell_lockedObject

Returns the value of attribute cell_locked.



229
230
231
# File 'lib/ru_excel/formatting.rb', line 229

def cell_locked
  @cell_locked
end

#formula_hiddenObject

Returns the value of attribute formula_hidden.



229
230
231
# File 'lib/ru_excel/formatting.rb', line 229

def formula_hidden
  @formula_hidden
end