Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require "rubygems" require "rubygame" require "rbgooey" require "yaml" include Rubygame TTF.setup class TestWeirdBug def initialize @data = UiData.new('data/mapedit.yml') @debug = 0 end def testing @debug += 1 @data.declare(:listing) @data.text.add("Listing content in map directory...",0,0) @data.text.add("blah",0,122) puts @debug end def clear @data.clear() end end test = TestWeirdBug.new() loop do test.clear() test.testing() end
This paste will be private.
From the Design Piracy series on my blog: