Sha256: 37855afe96241cd65ed157a64b3812db7840fcd72452ce30e779bd5f8418e945
Contents?: true
Size: 434 Bytes
Versions: 2
Compression:
Stored size: 434 Bytes
Contents
class ExcelFormula NO_CALCS=0x00 RECALC_ALWAYS=0x01 CALC_ON_OPEN=0x02 PART_OF_SHARED_FORMULA=0x08 attr_reader :parser def initialize(formula_string) @parser = ExcelFormulaParser.new(formula_string) # begin @parser.formula # rescue RuntimeError => e # puts e # raise "invalid Excel formula" # end end def to_biff rpn = @parser.rpn [rpn.size].pack('v') + rpn end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
surpass-0.0.7 | lib/surpass/excel_formula.rb |
surpass-0.0.6 | lib/surpass/excel_formula.rb |