From: itsme213 Date: 2006-10-21T11:50:14+09:00 Subject: Re: [OT:usage of uml] "Joel VanderWerf" wrote in message > It would be interesting if it were possible to generate UML from ruby > source Some of this would be simplified if the various flavors of #attr_accessor, #trait etc. actually kept around a simple representation of the declarations themselves, rather than just generate corresponding method code. > and/or execution traces. Wouldn't this be hard without a hook into object creation e.g. via some dependency injection mechanism? > I prefer to use metaprogramming in ruby rather than UML to express high > level concepts in code, +1 . Metaprogramming in ruby beats any UML diagramming because you are starting off with executable code, and can so easily craft a DSL suited to just your need (rather than have to work with the universal solution claimed by UML).