[Nitro] [ANN] Facets 1.8 (RC)

George Moschovitis george.moschovitis at gmail.com
Sat Jan 27 18:35:22 EST 2007


Tom,

here is a pattern that emerges often in Nitro/Og source code:


klass.ann(:self, :table => []) unless klass.ann(:self, :table)
klass.ann!(:self, :table) << info


can you propose a shortcut or idiom for this common pattern?

thanks,
George.

-- 
http://blog.gmosx.com
http://gmosx.me.gr
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070128/7600e381/attachment.html 


More information about the Nitro-general mailing list