Class: Lutaml::UmlRepository::Exporters::JsonExporter
- Inherits:
-
BaseExporter
- Object
- BaseExporter
- Lutaml::UmlRepository::Exporters::JsonExporter
- Defined in:
- lib/lutaml/uml_repository/exporters/json_exporter.rb
Overview
Export UML repository to JSON format.
Exports the complete UML model as JSON, preserving all relationships and metadata. Supports filtering by package and optional pretty printing.
Instance Attribute Summary
Attributes inherited from BaseExporter
Instance Method Summary collapse
-
#export(output_path, options = {}) ⇒ void
Export repository to JSON format.
Methods inherited from BaseExporter
Constructor Details
This class inherits a constructor from Lutaml::UmlRepository::Exporters::BaseExporter
Instance Method Details
#export(output_path, options = {}) ⇒ void
This method returns an undefined value.
Export repository to JSON format.
36 37 38 39 40 |
# File 'lib/lutaml/uml_repository/exporters/json_exporter.rb', line 36 def export(output_path, = {}) data = build_export_data() File.write(output_path, format_json(data, )) end |