On Wed, Feb 3, 2010 at 11:10 AM, Kale Davis <kale.davis / gmail.com> wrote: > I am creating a Ruby script that basically: > 1) Has a prompt that gets a command string (ex. 'edit user1 15') > 2) Parses the string > 3) Runs specific command (like 'edit' or 'new') > 4) Repeats > > From a functional level I know how to make this work, but how do I make > it dynamic in the sense that another user could easily add their own > commands by adding a new subclass? You may be interested in a somewhat ancient project of mine called Linen which does what you're describing: http://bitbucket.org/laika/linen/src/ I haven't touched that code for years, and it had some issues when I last worked with it, so I'm not really suggesting you use it, so much as look at it for ideas of how to do what you want :) Ben