On Tue, Sep 8, 2009 at 15:04, Glenn Little <[email protected]> wrote:

> Only thing I couldn't get working is I couldn't encapsulate the list
> generation into a method:
>

Well, my example was somewhat wrong, in that the class method was defined in
the wrong class. Maybe that's what was giving you the problem?

Anyway, here's a better example: http://gist.github.com/183181

That's only very lightly tested, but it *should* work…

-- 
Nick Zadrozny

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to