Class: ProtectRecord

Inherits:
BiffRecord show all
Defined in:
lib/surpass/biff_record.rb

Overview

This record is part of the worksheet/workbook protection. It determines whether the scenarios of the current sheet are protected. Scenario protection is not active, if this record is omitted.

Constant Summary collapse

RECORD_ID =
0x0012

Constants inherited from BiffRecord

BiffRecord::BIFF_LIMIT, BiffRecord::CONTINUE_RECORD_ID

Instance Attribute Summary

Attributes inherited from BiffRecord

#record_data

Instance Method Summary collapse

Methods inherited from BiffRecord

#record_header, #to_biff

Constructor Details

#initialize(protect) ⇒ ProtectRecord

Returns a new instance of ProtectRecord.



281
282
283
# File 'lib/surpass/biff_record.rb', line 281

def initialize(protect)
  @record_data = [protect].pack('v')
end