Module: Lutaml::UmlRepository::Exporters::Markdown::Formatting
Instance Method Summary
collapse
#class_type_for, #normalize_stereotypes, #package_path_for, #parse_cardinality, #qualified_name_for
Instance Method Details
12
13
14
15
16
17
18
|
# File 'lib/lutaml/uml_repository/exporters/markdown/formatting.rb', line 12
def format_cardinality(cardinality)
return "" unless cardinality
min = cardinality.min || "0"
max = cardinality.max || "*"
"#{min}..#{max}"
end
|
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/lutaml/uml_repository/exporters/markdown/formatting.rb', line 20
def format_stereotypes(stereotype)
return "" unless stereotype
case stereotype
when Array
stereotype.join(", ")
when String
stereotype
else
""
end
end
|