Module: Moult::Formatters::BoundariesJson
- Defined in:
- lib/moult/formatters/boundaries_json.rb
Overview
JSON rendering of a BoundariesReport. A thin pass-through of the report's own
to_h so the serialized shape cannot drift from the table formatter or the
contract.
Class Method Summary collapse
Class Method Details
.render(report) ⇒ String
15 16 17 |
# File 'lib/moult/formatters/boundaries_json.rb', line 15 def render(report) JSON.pretty_generate(report.to_h) end |