Introduction
Cruml (Crystal and UML) is a library that provides a UML class diagram generator. This is useful when you work on a big Crystal projects and you want to represent your project structure.
classDiagram
direction LR
Person <|-- Employee
class Person {
-name : String
+name() String
}
class Employee {
-wage : Int32
+wage() Int32
+wage=() Nil
}
Note
Cruml uses mermaid.js library to display the UML class diagram.