[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [FR-devel] Template code (was: Unit Testing integration)
From: |
Robert Gustavsson |
Subject: |
RE: [FR-devel] Template code (was: Unit Testing integration) |
Date: |
Thu, 2 May 2002 23:16:57 +0200 |
Baptiste wrote:
> I'm not sure what would be the computed parameter for Ruby
> though. I can
> think of one:
>
> for bookmark in @bookmarks => I often name iterator as a
> singular form of the collection, but I don't know if it's a common
> idion among Ruby developper...
I haven't really developed a steady style for Ruby coding yet, but yes,
I usually do like you do. But I use the each method:
@bookmarks.each do |bookmark|
...
end
It just feel more OO.
/rob
Re: [FR-devel] Re: Welcome to FR-devel, Baptiste Lepilleur, 2002/05/02