Sha256: f61bf297fd16f3c7e245da869a142746108e9511d00f8211019797f154d27da6

Contents?: true

Size: 531 Bytes

Versions: 6

Compression:

Stored size: 531 Bytes

Contents

require_relative 'shared_formula_builder'

module RubyFromExcel
  class SharedFormulaCell < FormulaCell
    attr_accessor :shared_formula
    attr_accessor :shared_formula_offset
    
    def parse_formula
      # No
    end
  
    def work_out_dependencies
      self.dependencies ||= shared_formula.visit(SharedFormulaDependencyBuilder.new(self,shared_formula_offset))
    end
  
    def ruby_value
      "@#{reference.to_ruby} ||= #{shared_formula.visit(SharedFormulaBuilder.new(self, shared_formula_offset))}"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubyfromexcel-0.0.10 lib/cells/shared/shared_formula_cell.rb
rubyfromexcel-0.0.9 lib/cells/shared/shared_formula_cell.rb
rubyfromexcel-0.0.7 lib/cells/shared/shared_formula_cell.rb
rubyfromexcel-0.0.6 lib/cells/shared/shared_formula_cell.rb
rubyfromexcel-0.0.5 lib/cells/shared/shared_formula_cell.rb
rubyfromexcel-0.0.4 lib/cells/shared/shared_formula_cell.rb