lib/whirled_peas/graphics/debugger.rb in whirled_peas-0.10.0 vs lib/whirled_peas/graphics/debugger.rb in whirled_peas-0.11.0
- old
+ new
@@ -16,16 +16,10 @@
]
info << "#{indent + ' '}- Dimensions(#{dimensions})"
info << "#{indent + ' '}- Settings"
info << Settings::Debugger.new(painter.settings).debug(indent + ' ')
if painter.is_a?(TextPainter)
- content = if painter.content.length > 1
- '<multiline>'
- elsif painter.content.first.length > 12
- "#{painter.content.first[0..9]}...".inspect
- else
- painter.content.first.inspect
- end
+ content = painter.content
info << "#{indent + ' '}- Content(value=#{content})"
elsif painter.is_a?(ContainerPainter)
info << "#{indent + ' '}- Children"
info += painter.each_child.map { |c| Debugger.new(c).debug(indent + ' ') }
end