Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
PEOPLE = {'scott guthrie' => 32, 'suzanne guthrie' => 32, 'bill gates' => 50} def avg_age count = 0 and PEOPLE.inject(0) do |sum, (person, age)| person['guthrie'] ? (count += 1 and sum + age) : sum end / count end
This paste will be private.
From the Design Piracy series on my blog: