module WeighflowCli::Rendering

Public Instance Methods

options_renderer(result, options = {}) click to toggle source
# File lib/weighflow_cli/rendering.rb, line 3
def options_renderer(result, options = {})
  if options[:yaml]
    puts result.to_yaml
  else
    puts JSON.pretty_generate(result)
  end
end