All Projects → meisyal → staruml-ruby

meisyal / staruml-ruby

Licence: MIT license
Ruby extension for StarUML.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to staruml-ruby

Nomnoml
The sassy UML diagram renderer
Stars: ✭ 1,685 (+6380.77%)
Mutual labels:  uml, class-diagram
xumlidot
RUBY UML class diagram generator with XMI and DOT output.
Stars: ✭ 28 (+7.69%)
Mutual labels:  uml, class-diagram
staruml3-graphql
GraphQL extension for StarUML3
Stars: ✭ 15 (-42.31%)
Mutual labels:  uml, staruml
Susnote
Susnote is a notebook which support markdown, UML and Chart.
Stars: ✭ 97 (+273.08%)
Mutual labels:  uml
Vscode Mermaid Preview
Previews Mermaid diagrams
Stars: ✭ 111 (+326.92%)
Mutual labels:  uml
Amateras Modeler
UML and ER-diagram editor for Eclipse
Stars: ✭ 190 (+630.77%)
Mutual labels:  uml
C4-PlantumlSkin
This library provides skinning to create C4 diagrams using PlantUml
Stars: ✭ 74 (+184.62%)
Mutual labels:  uml
Metauml
UML diagrams for LaTeX/MetaPost
Stars: ✭ 91 (+250%)
Mutual labels:  uml
Plantuml Icon Font Sprites
plantuml-font-icon-sprites
Stars: ✭ 242 (+830.77%)
Mutual labels:  uml
Nomnoml
Sassy 'UML' Diagrams for R
Stars: ✭ 173 (+565.38%)
Mutual labels:  uml
Umple
Umple: Model-Oriented Programming - embed models in code and vice versa and generate complete systems
Stars: ✭ 147 (+465.38%)
Mutual labels:  uml
C4 Plantuml
C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
Stars: ✭ 3,522 (+13446.15%)
Mutual labels:  uml
Umldoclet
Automatically generate PlantUML diagrams in javadoc
Stars: ✭ 138 (+430.77%)
Mutual labels:  uml
Diagon
Interactive ASCII art diagram generators. 🌟
Stars: ✭ 189 (+626.92%)
Mutual labels:  uml
Vscode Yuml
yUML extension for Visual Studio Code
Stars: ✭ 102 (+292.31%)
Mutual labels:  uml
Azure Plantuml
PlantUML sprites, macros, and other includes for Azure services
Stars: ✭ 247 (+850%)
Mutual labels:  uml
Sismic
Sismic Interactive Statechart Model Interpreter and Checker http://sismic.readthedocs.org/
Stars: ✭ 92 (+253.85%)
Mutual labels:  uml
Freetakserver
an open source, lightweight Server for connect TAK clients
Stars: ✭ 127 (+388.46%)
Mutual labels:  uml
Tui.editor
🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
Stars: ✭ 14,016 (+53807.69%)
Mutual labels:  uml
IPlantUML
A Python package which defines a PlantUML cell magic for IPython.
Stars: ✭ 85 (+226.92%)
Mutual labels:  uml

staruml-ruby

staruml-ruby is a Ruby extension for StarUML. This extension helps you to generate Ruby code from a UML class diagram. For example, you have a class called Book.

Book class

staruml-ruby will generate code below:

class Book
  def initialize(name, price, qty)
    @name = name
    @price = price
    @qty = qty
  end

  private
    attr_accessor :name, :price, :qty

  def to_s
    "Your string representation of the object will be written here."
  end
end

Current Status

This extension currently supports generating Ruby code from a UML class diagram. Reverse engineering from Ruby code to a UML class diagram is not supported at the moment.

Please, refer to Supported UML concepts page for futher details.

Installation

The simplest way to install staruml-ruby is from StarUML extension repository. This installation method is explained as follows:

  1. Click Tools -> Extension Manager... on the menu bar of StarUML. The Extension Manager window will appear as a pop-up window.
  2. Select Registry button.
  3. Type ruby on search box. Ruby extension will appear.
  4. Press Install button of Ruby extension.

Note that internet connection is needed to perfom the installation.

StarUML extension repository stores extensions that officially registered. Because of it, I highly recommend to use this installation method. Registered extensions are available on this page.

See Installation for other installation methods.

Usage

Prepare your model that contains a UML class diagram and then:

  1. Click Tools -> Ruby -> Generate Code... on the menu bar of StarUML. A pop-up window will appear.
  2. Choose a model that will be generated its code. And then, press OK button.
  3. Select a location where the generated code will be stored.
  4. Press Open button.

Configuration

You can configure the extension before generating the code. The configuration handles how the generated code looks like. Indentation of code and code comment, for example. This is supported by this extension to generate Ruby code, as you prefer.

Check Configuration to configure the extension.

Documentation

Documentation is available at staruml-ruby GitHub Wiki. Documentation contains a lot more detail on examples, features, and roadmap.

Contributing

Contributions are welcome. Before submitting an issue or a pull request, please take a moment to look over the contributing guidelines first.

License

This extension is released under the terms of MIT License. See the LICENSE file for more details.

Copyright © 2016-2019 Andrias Meisyal.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].