Copyright © 2009 Gregoire Lejeune
Ruby/yUML is a UML diagrams generator via yuml.me
-
Initial release
-
Use Case :
_(:UseCase)
oruseCase(:UseCase)
-
Actor :
_[:Actor]
oractor(:Actor)
-
<<Extend>> :
_(:UseCase) < _(:OtherUseCase)
-
<<Include>> :
_(:UseCase) > _(:OtherUseCase)
-
Link :
_[:Actor] - _(:UseCase)
-
Actor Inheritance :
_[:Actor] ^ _[:OtherActor]
-
Notes :
_(:UseCase) - note('This is a note')
require 'yuml' YUML::useCaseDiagram( :scruffy, :scale => 75 ) { _[:Admin] ^ _[:User] _[:Admin] - note( 'Most privilidged user' ) _[:User] - _(:Login) _[:User] - _(:Logout) _(:Login) < _(:Reminder) _(:Login) > _(:Captcha) }.to_png( "sample.png" )
This example generate this PNG :
-
Start :
_(:start)
or_start
oractivity(:start)
-
End :
_(:end)
or_end
oractivity(:end)
-
Activity :
_(:Activity)
oractivity(:Activity)
-
Flow :
_(:A) > _(:B)
-
Decision :
_{:Decision}
ordecision(:Decision)
-
Parallel :
_[:Parallel]
orparallel(:Parallel)
-
Decision with label :
_{:Decision} -"label"> _(:Activity)
require 'yuml' YUML::activityDiagram( :scruffy, :scale => 100 ) { _(:start) > _{:d1} _{:d1} -"logged in"> _("Show Dashboard") _("Show Dashboard") > _[:a] _[:a] > _(:end) _{:d1} -"not logged in"> _("Show Login") _("Show Login") > _[:a] }.to_png( "activity-diagram.png" )
This example generate this PNG :
WIP
require 'yuml' x = YUML::classDiagram( :scruffy, :scale => 75 ) { _["Customer"|"Forename;Surname;Email"|"+new();-Save()"] - _[:User] _["Customer"] - note( 'I love this Klass' ) }.to_png( "class-diagram.png" )
This example generate this PNG :
-
An internet acces ;)
Ruby/yUML is freely distributable according to the terms of the GNU General Public License.
This program is distributed without any warranty. See the file ‘COPYING’ for details.