[Nitro] [ANN] Facets 1.8 (RC)

George Moschovitis george.moschovitis at gmail.com
Mon Jan 29 03:44:58 EST 2007


>
>
> > so it's a little more complex than your traits implementation.
>
> :|
> oh well, was worth a shot
>
>
yeah, but how about this:


class Article
  def read
  end
  trait [:read, :title] => 'Read'  === ann :read, :title => Read

  trait :controller => ArticleController === ann :self, :controller =>
ArticleController
end


regards,
George.


-- 
http://blog.gmosx.com
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/20070129/d3dbfdb2/attachment.html 


More information about the Nitro-general mailing list