Robert Klemme
3/27/2009 7:54:00 AM
2009/3/27 Adam Akhtar <adamtemporary@gmail.com>:
> I actually got confused between my patterns, it was the strategy pattern
> not the template pattern. But at the end of the day it all boiled down
> to how I could dynamically initialize each feed_parser and thats where i
> got stuck mainly due to lack of programming experience.
>
> I didnt know I could store class names in hashes but after reading up on
Actually those were not class names but class _objects_ themselves in
my example!
> Ruby Desing Patterns i found out they are objects themselves.
>
> So Ill think ill use the hash idea!
So I conclude from that that you know which feed needs which parsing algorithm.
> Thank you all so much for your suggestions.
You're welcome!
Kind regards
robert
--
remember.guy do |as, often| as.you_can - without end