[Nitro] 0.26.0 preview

itsme213 itsme213 at hotmail.com
Thu Dec 15 18:20:25 EST 2005


> project.groups.users

Changes the Ruby meeting of "."  

class User; property :size, Integer; end

e.g. project.groups.size #=> which size?

> project.groups.inject([]) { |acc, g| acc << g.users }

A bit verbose.

> project.groups.injector.users

Does not read well.


What about something a bit like:

project.groups.all(:users)




More information about the Nitro-general mailing list