lib/cells/value/value_cell.rb in rubyfromexcel-0.0.10 vs lib/cells/value/value_cell.rb in rubyfromexcel-0.0.13
- old
+ new
@@ -4,10 +4,12 @@
def self.for(other_cell)
vc = ValueCell.new(other_cell.worksheet)
vc.reference = other_cell.reference
vc.xml_value = other_cell.xml_value
vc.xml_type = other_cell.xml_type
+ vc.work_out_dependencies
+ vc.debug
vc
end
def ruby_value
value
@@ -17,8 +19,14 @@
true
end
def to_test( r = RubySpecWriter.new)
nil # i.e., don't bother with tests for simple_values
- end
+ end
+
+ def debug
+ return "" unless xml_value
+ RubyFromExcel.debug(:cells,"#{worksheet.name}.#{reference} -> #{xml_value.inspect} (#{xml_type}) -> #{value_for_including.inspect}")
+ end
+
end
end
\ No newline at end of file