Class: Exa::CLI::Formatters::JsonFormatter
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- Exa::CLI::Formatters::JsonFormatter
- Defined in:
- lib/exa/cli/formatters.rb
Instance Method Summary collapse
Instance Method Details
#render(cli:, payload:, collection:) ⇒ Object
34 35 36 |
# File 'lib/exa/cli/formatters.rb', line 34 def render(cli:, payload:, collection:) cli.say JSON.pretty_generate(serialize(cli, payload)) end |