Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
def instantiate_class(klass) Object.const_get(klass.to_s.split('_').inject('') { |total,part| total << part.capitalize }) end
From the Design Piracy series on my blog: