On 09 May 2010, at 08:28, Samiron wrote:
I was wondering about how you guys are implementing the decorator
patterns in Ruby? Here is a thought to share with. http://digs.by/9Rezfs
.
Could you please share your thoughts about this implementation?
You could easily do that in a few lines:
http://lukeredpath.co.uk/blog/decorator-pattern-with-ruby-in-8-lines.html
There are quite a few blog posts on the net when you google for "ruby
decorator pattern".
About your implementation, I prefer the syntax from the post above,
simply because it reads more natural. Other than that, yours does seem
a viable solution (only skimmed it, but seems fine) :-)
Best regards
Peter De Berdt
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.