Class: ReadXls::RecordHandler::Xf

Inherits:
Base
  • Object
show all
Defined in:
lib/read_xls/record_handler/xf.rb

Instance Attribute Summary

Attributes inherited from Base

#biff, #builder, #record_data, #record_number

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

This class inherits a constructor from ReadXls::RecordHandler::Base

Instance Method Details

#callObject



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/read_xls/record_handler/xf.rb', line 4

def call
  format_index = record_data
                   .byteslice(2, 2)
                   .unpack("v")
                   .first

  builder.add_extended_format(
    ::ReadXls::Evaluator::ExtendedFormat.new(
      :builder      => builder,
      :format_index => format_index
    )
  )
end