addSpot

Add a "spot" to a class in a class diagram.

TODO i think there is a bug here. There is an order dependency of who is called first, addSpot or addAs. Both extend "as" which means that if addSpot is called before addAs it will be "interesting".

The documentation for PlantUML describes what it is. Example of a spot: class A << I, #123456 >> '--the spot----'

@safe
addSpot
(
T
)
(
ref T m
,
string spot
)
if (
is(T == ClassType)
)

Examples

auto m = new PlantumlModule;
auto class_ = m.class_("A");
class_.addSpot("<< I, #123456 >>");

Creating a plantuml spot. Output: class A << I, #123456 >> '--the spot----'

1     auto m = new PlantumlModule;
2     auto class_ = m.class_("A");
3     class_.addSpot("<< I, #123456 >>");
4 
5     m.render.shouldEqual(`    class "A" << I, #123456 >>
6 `);

Meta