lib/cells/array/arraying_formula_cell.rb in rubyfromexcel-0.0.10 vs lib/cells/array/arraying_formula_cell.rb in rubyfromexcel-0.0.13
- old
+ new
@@ -27,10 +27,12 @@
end
def array_formula_onto_cell(cell)
cell.array_formula_reference = self.array_formula_reference
cell.array_formula_offset = offset_from(cell)
+ cell.original_formula = self.original_formula
+ cell.debug_after_sharing
end
def offset_from(cell)
cell.reference - self.reference
end
@@ -60,8 +62,12 @@
"@#{reference.to_ruby} ||= #{array_formula_reference}.array_formula_offset(#{array_formula_offset.join(',')})"
end
def ruby_array_value
ast.visit(ArrayFormulaBuilder.new(self))
+ end
+
+ def debug
+ RubyFromExcel.debug(:cells,"#{worksheet.name}.#{reference} -> array -> #{original_formula.inspect} -> #{ast.inspect} offset #{array_formula_offset.inspect} -> #{xml_value} (#{xml_type}) -> #{value_for_including.inspect}")
end
end
end
\ No newline at end of file