Module: Aws::Templates::Cli::Formatter
- Defined in:
- lib/aws/templates/cli/formatter.rb,
lib/aws/templates/cli/formatter/json.rb
Overview
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.
Defined Under Namespace
Classes: Json
Class Method Summary collapse
Class Method Details
.format_as(type, *params) ⇒ Object
14 15 16 17 |
# 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 |