Trying to give a little more flexibility to the root name for a serializer. In addition to allowing a true/false or symbol, I've added the ability to use a lambda as the root which will be called with the object to be serialized. Was useful on a project I was working on, might be useful to others as well.
added ability to assign a lambda to the root for a serializer
Rather than relying on type checking, what about just checking for #respond_to?(:call), opening this up to any call-able object?
good call, with change.
check for callable object in root attribute, not just Proc
I'm not interested in changing the DSL in 0.9, but we'll see if we can't get some of this kind of flexibility into 0.10.