Sha256: 54ac55a894cb45ab536b29b8d0e215272ff43509dd7688c7c1081b931fdfb77d

Contents?: true

Size: 373 Bytes

Versions: 9

Compression:

Stored size: 373 Bytes

Contents

require_relative 'single_cell_array_formula_builder'

module RubyFromExcel
  class SingleCellArrayFormulaCell < FormulaCell
    
    def ruby_value
      ruby_code = ast.visit(SingleCellArrayFormulaBuilder.new(self))
      ruby_code = "(#{ruby_code}).array_formula_offset(0,0)" if ruby_code =~ /^m\(.*\}$/
      "@#{reference.to_ruby} ||= #{ruby_code}"
    end
  
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubyfromexcel-0.0.23 lib/cells/array/single_cell_array_formula_cell.rb
rubyfromexcel-0.0.22 lib/cells/array/single_cell_array_formula_cell.rb
rubyfromexcel-0.0.21 lib/cells/array/single_cell_array_formula_cell.rb
rubyfromexcel-0.0.20 lib/cells/array/single_cell_array_formula_cell.rb
rubyfromexcel-0.0.19 lib/cells/array/single_cell_array_formula_cell.rb
rubyfromexcel-0.0.18 lib/cells/array/single_cell_array_formula_cell.rb
rubyfromexcel-0.0.17 lib/cells/array/single_cell_array_formula_cell.rb
rubyfromexcel-0.0.16 lib/cells/array/single_cell_array_formula_cell.rb
rubyfromexcel-0.0.13 lib/cells/array/single_cell_array_formula_cell.rb