Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
def self.parse(file) instance = new() return instance unless FileTest.exist?(file) File.readlines(file).each do |line| if line =~ /^(\w+)=(.+)$/ initialize(line) end end return instance end
This paste will be private.
From the Design Piracy series on my blog: