Class: ReadXls::RecordHandler::Rk
- Defined in:
- lib/read_xls/record_handler/rk.rb
Instance Attribute Summary
Attributes inherited from Base
#biff, #builder, #record_data, #record_number
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from ReadXls::RecordHandler::Base
Instance Method Details
#call ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/read_xls/record_handler/rk.rb', line 4 def call row, column, xf_index = record_data .byteslice(0, 6) .unpack("v3") rk_bits = record_data .byteslice(6, 4) .unpack("V") .first rk_column = ::ReadXls::Evaluator::RkNumber.new(builder, rk_bits, xf_index) builder.add_column_to_row( row, column, rk_column ) end |