Class: Lutaml::UmlRepository::Exporters::MarkdownExporter

Inherits:
BaseExporter
  • Object
show all
Includes:
Lutaml::Uml::ModelHelpers, Lutaml::UmlRepository::Exporters::Markdown::Formatting
Defined in:
lib/lutaml/uml_repository/exporters/markdown_exporter.rb

Instance Attribute Summary

Attributes inherited from BaseExporter

#repository

Instance Method Summary collapse

Methods included from Lutaml::UmlRepository::Exporters::Markdown::Formatting

#format_cardinality, #format_stereotypes

Methods included from Lutaml::Uml::ModelHelpers

#class_type_for, #format_cardinality, #normalize_stereotypes, #package_path_for, #parse_cardinality, #qualified_name_for

Methods inherited from BaseExporter

#initialize

Constructor Details

This class inherits a constructor from Lutaml::UmlRepository::Exporters::BaseExporter

Instance Method Details

#export(output_path, options = {}) ⇒ Object



19
20
21
22
23
24
25
26
27
# File 'lib/lutaml/uml_repository/exporters/markdown_exporter.rb', line 19

def export(output_path, options = {})
  @output_dir = output_path
  @options = options

  create_directory_structure
  generate_index_page
  generate_package_pages
  generate_class_pages
end