Subject: | Proposed features related to Moose roles |
Date: | Wed, 04 Apr 2012 22:23:36 -0700 |
To: | bug-UML-Class-Simple [...] rt.cpan.org |
From: | Tony Monroe <tony [...] nog.net> |
I was recently converting something from vanilla Perl 5 to Moose, and I
decided that I wanted a way to visualize the relationships between my
classes. So UML::Class::Simple worked well enough until I found that
for this particular project, the role relationships were more
interesting than the inheritance.
The attached Subversion diff against UML-Class-Simple-0.18 adds three
new options to umlclass.pl as well as some basic testing code to
exercise the new features and not choke during "make test".
Brief summary of new features:
* moose-roles (adds different colored edges)
* no-methods (for when you just want to see the boxes and arrows)
* no-inheritance (best combined with moose-roles)
This was tested on Perl 5.12.3/MacOS 10.7.3/x86_64, and Perl
5.10.1/FreeBSD-8.2/amd64. I hope there's nothing terribly OS- or
architecture-specific about the patch but one never knows..
-- Tony Monroe
Message body is not shown because sender requested not to inline it.