Class: ReadXls::RecordHandler::String
- Defined in:
- lib/read_xls/record_handler/string.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 |
# File 'lib/read_xls/record_handler/string.rb', line 4 def call char_length, grbit = record_data.byteslice(0, 3).unpack("vC") char_byte_size = grbit == 0 ? 1 : 2 string = record_data.byteslice(3, char_byte_size * char_length) builder.add_formula_string(string) end |