lib/writeexcel/debug_info.rb in writeexcel-0.6.9 vs lib/writeexcel/debug_info.rb in writeexcel-0.6.10
- old
+ new
@@ -29,9 +29,13 @@
infos.each do |info|
print "#{info[:file]}:#{info[:line]}"
print " in #{info[:method]}" if info[:method]
print "\n"
end
- print data.unpack('C*').map! {|byte| sprintf("%02X", byte) }.join(' ') + "\n\n"
+ print unpack_record(data) + "\n\n"
+ end
+
+ def unpack_record(data) # :nodoc:
+ data.unpack('C*').map! {|c| sprintf("%02X", c) }.join(' ')
end
end
end