Ruby/yUML

Copyright (C) 2009 Gregoire Lejeune

DESCRIPTION:

Ruby/yUML is a UML diagrams generator via yuml.me

FEATURES/PROBLEMS:

0.1.0

SYNOPSIS:

Use Case Diagram

Syntax Overview

Example

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 :

Activity Diagram

Syntax Overview

Example

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 :

Class Diagram

Syntax Overview

WIP

Example

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 :

REQUIREMENTS:

LICENSE:

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.