Class: Aws::Templates::Utils::Parametrized::Transformation::AsString

Inherits:
Aws::Templates::Utils::Parametrized::Transformation show all
Includes:
Singleton
Defined in:
lib/aws/templates/utils/parametrized/transformation/as_string.rb

Overview

Convert input into string

Input value can be anything implementing :to_s method.

Example

class Piece
  include Aws::Templates::Utils::Parametrized

  parameter :param, :transform => as_string
end

i = Piece.new
i.param # => nil
i = Piece.new(:param => 23)
i.param # => '23'

Method Summary

Methods inherited from Aws::Templates::Utils::Parametrized::Transformation

#to_proc, #transform_wrapper