class ReadXls::RecordHandler::Formula

Public Instance Methods

call() click to toggle source
# File lib/read_xls/record_handler/formula.rb, line 4
def call
  row, column, xf_index = record_data.byteslice(0, 6).unpack("v3")
  result_test           = record_data.byteslice(12, 2).unpack("v").first
  number_bytes          = record_data.byteslice(6, 8)

  builder.add_column_to_row(
    row,
    column,
    ::ReadXls::Evaluator::Formula.new(builder, result_test, number_bytes)
  )
end