Class: Aws::Templates::Utils::Parametrized::Transformation::AsString
- Inherits:
-
Aws::Templates::Utils::Parametrized::Transformation
- Object
- Aws::Templates::Utils::Parametrized::Transformation
- Aws::Templates::Utils::Parametrized::Transformation::AsString
- 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'