module Aws::Templates::Cli::Formatter

Pluggable formatters

The module contains formatter factory method and default formatter (AsIs) definition. Formatters are classes implementing simple “format” method accepting object and returning its' formatted string version.

Public Class Methods

format_as(type, *params) click to toggle source
# File lib/aws/templates/cli/formatter.rb, line 14
def self.format_as(type, *params)
  require "aws/templates/cli/formatter/#{type.pathize}"
  const_get(type).new(*params)
end