On Apr 12, 5:50 pm, "Sean O'Halpin" <sean.ohal... / gmail.com> wrote:
> Doodle 0.0.9 has been released.
>
> Doodle simplifies the definition of Ruby classes by providing a simple
> DSL for declaring attribute validations and conversions.
>
> Doodle is eco-friendly - it does not globally modify Object, Class or
> Module (and it plays nice with yaml).
>
> For more info and examples, see the docs athttp://doodle.rubyforge.org.
>
> Changes for 0.0.9:
>
> - new features:
>   - :collect now creates array by default if no :init specified
> (thanks to James Adam :)
>   - :collect can now initialize from Enumerables by default
>   - raise UnknownAttributeError if initialize called with unspecified
> attribute key
>   - added experimental Doodle.context and Doodle.parent (only valid
> during initialization)
> - new examples:
>   - datatypes
>   - mail example
>   - Doodle.parent
> - new specs for singletons, Doodle.context and Doodle.parent, factory
> - updated docs
> - removed unused code and tidied up
> - bug fixes:
>   - fixed memory leak
>   - fixed regex for factory methods
>   - fixed bug where validate! was creating instance variables with defaults
>   - fixed errors collection
>   - fixed yaml test for JRuby
>   - now doesn't try to define factory method if one with same name
> already defined
>
> Regards,
> Sean

Hi Sean,

Doodle looks very promising. I especially like the use on annotation-
style attribute options.

Couple of questions:

  1. None of the examples define regular methods. Is Doodle just for
data classes?

  2. Are you currently using this in any of your other apps?

Thanks,
T.