ricardohsd/typecaster — pull request #1 by norbaoliveira (2012-08-08 21:44:17+00:00)
Title: Ricardo,

Removes `typecaster` method that defines typecaster classes,
changing to add the param `class => FooTypeCaster`
to the `attribute` method.

==== Old API ======

class ObjectFormatter
include TypeCaster

attribute :name, :type => "string", :size => 10

def typecaster
{ "string" => StringTypeCaster }
end
end

==================

===== New API ======

class ObjectFormatter
include TypeCaster

`attribute :name, :size => 10, :class => StringTypeCaster`
end

==================