Skip to content

A ruby to dot transpiler. Useful to generate classes hierarchy diagrams from ruby source

Notifications You must be signed in to change notification settings

adrianmarino/ruml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status License

Ruml

Ruby to dot transpiler.

Requisites

  • Java 7: i.e. install using jenv:
$ curl -L -s get.jenv.io | bash
jenv install java 1.7.0_75
  • JRuby: i.e. install using rvm
rvm install jruby
rvm use jruby

Install

Download repo and install gem:

git clone https://github.com/adrianmarino/ruml.git
cd ruml
rake install:local

Or include in your Gemfile:

gem 'ruml', git: 'https://github.com/adrianmarino/ruml.git', branch: 'master'

Use

Generate dot diagram from irb

require 'ruml'; Ruml::Transpiler::Ruby2Dot.from_path('example/input.rb').compile

Generate dot diagram with ruby2dot command

Next command read an input ruby file and generate an output in dot language. Then redirect the output to xdot command. xdot is a dot viewer.

bin/ruby2dot example/input.rb | xdot

xdot output:

alt Models Diagram

About

A ruby to dot transpiler. Useful to generate classes hierarchy diagrams from ruby source

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published