[cairo] New ruby cairo binding landed in CVS

mental at rydia.net mental at rydia.net
Tue Feb 8 15:17:10 PST 2005


(replying to myself)

Quoting mental at rydia.net:

> save_during looks like a very good idea though, although I have
> mixed feelings about the name.

Actually on second thought I think Ned's right, the name needs to
have save in it.

If we wanted to be really Ruby-ish, we might just want to "overload"
save to take an optional block.  If a block is provided, it would
act like the proposed save_during.

This is a very widespread pattern in Ruby, the most popular example
being File.open.

-mental



More information about the cairo mailing list