lib/cells/cell.rb in rubyfromexcel-0.0.10 vs lib/cells/cell.rb in rubyfromexcel-0.0.13
- old
+ new
@@ -4,10 +4,11 @@
attr_accessor :worksheet, :reference, :dependencies, :xml_value, :xml_type
def initialize(worksheet,xml = nil)
self.worksheet = worksheet
parse_xml xml
+ debug
end
def parse_xml(xml)
return nil unless xml
self.reference = Reference.new(xml['r'],worksheet)
@@ -91,8 +92,12 @@
end
def inspect
"(cell: #{to_s} with formula:#{respond_to?(:ast) ? ast.inspect : "na"} and value '#{value}' of type '#{xml_type}')"
end
-
+
+ def debug
+ RubyFromExcel.debug(:cells,"#{worksheet.name}.#{reference} -> #{} -> #{xml_value} (#{xml_type})")
+ end
+
end
end