On Wed, Jun 11, 2008 at 4:10 AM, Bernhard Baase
<bbaase at openobjectives.com> wrote:> Hi,
>
> I''m new to Ruby and I tried and searched a lot how to use vpim to
generate a
> vtodo. But as the encode method only works for the Icalendar class I
didn''t
> managed to render out a Vtodo. Can someone paste a simple example how to do
> this.
A TODO can exist only as a component in a calendar (but it can be the
only component).
Create a Vtodo object, add it to an Icalendar object (with #push).
Then encode the Icalendar.
Cheers,
Sam