Class: Aws::Templates::Utils::Parametrized::Transformation::AsModule
- Inherits:
-
Aws::Templates::Utils::Parametrized::Transformation
- Object
- Aws::Templates::Utils::Parametrized::Transformation
- Aws::Templates::Utils::Parametrized::Transformation::AsModule
- Includes:
- Singleton
- Defined in:
- lib/aws/templates/utils/parametrized/transformation/as_module.rb
Overview
Convert to a Ruby class
The transformation allows to use elements of metaprogramming in the framework. It tries to transform passed value to a Ruby class.
Example
class Piece
include Aws::Templates::Utils::Parametrized
parameter :param, :transform => as_module
end
i = Piece.new
i.param # => nil
i = Piece.new(:param => 'Object')
i.param # => Object