Class: Fictium::ApiBlueprintExporter
- Inherits:
-
Object
- Object
- Fictium::ApiBlueprintExporter
- Defined in:
- lib/fictium/exporters/api_blueprint_exporter.rb,
lib/fictium/exporters/api_blueprint_exporter/base_formatter.rb,
lib/fictium/exporters/api_blueprint_exporter/action_formatter.rb,
lib/fictium/exporters/api_blueprint_exporter/footer_formatter.rb,
lib/fictium/exporters/api_blueprint_exporter/header_formatter.rb,
lib/fictium/exporters/api_blueprint_exporter/example_formatter.rb,
lib/fictium/exporters/api_blueprint_exporter/resource_formatter.rb
Defined Under Namespace
Classes: ActionFormatter, BaseFormatter, ExampleFormatter, FooterFormatter, HeaderFormatter, ResourceFormatter
Instance Method Summary collapse
Instance Method Details
#export(document) ⇒ Object
11 12 13 14 15 |
# File 'lib/fictium/exporters/api_blueprint_exporter.rb', line 11 def export(document) result = process_file(document).presence || '' FileUtils.mkdir_p(File.dirname(export_file)) File.write(export_file, result) end |