From: jake kaiden Date: 2011-04-18T11:10:11+09:00 Subject: Re: Making a simple parser Felipe Balbi wrote in post #993383: > Hi Jake, > I want to add another input format > all I would have to do would be to create a new class and the code > would just work. > > With this approach, I would have keep on adding more and more > methods for doing the actual parsing of different formats and what > I wanted was to offload that to another class without touching the > caller code. a very good point - and really what inheritance is for. good luck with a solution, i (and i imagine those who read this post) will keep playing with the idea... hasta otro... -j -- Posted via http://www.ruby-forum.com/.