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
Pasted November 26, 2006 2:47PM EDT
by ezmobius
Embed