Class: SolidAgent::AgentManifest::Exporters::AgentMdExporter
- Inherits:
-
BaseExporter
- Object
- BaseExporter
- SolidAgent::AgentManifest::Exporters::AgentMdExporter
- Defined in:
- lib/solid_agent/agent_manifest/exporters/agent_md_exporter.rb
Overview
AgentMdExporter converts Manifests to the native .agent.md format.
Class Method Summary collapse
-
.export(manifest, include_examples: false, include_tests: false) ⇒ String
Export manifest to .agent.md format.
- .format_name ⇒ Object
Class Method Details
.export(manifest, include_examples: false, include_tests: false) ⇒ String
Export manifest to .agent.md format
26 27 28 29 30 31 |
# File 'lib/solid_agent/agent_manifest/exporters/agent_md_exporter.rb', line 26 def export(manifest, include_examples: false, include_tests: false, **) frontmatter = build_agent_md_frontmatter(manifest, include_examples, include_tests) body = build_body(manifest) "#{frontmatter}\n#{body}" end |
.format_name ⇒ Object
16 17 18 |
# File 'lib/solid_agent/agent_manifest/exporters/agent_md_exporter.rb', line 16 def format_name :agent_md end |