Class: Aws::Templates::Utils::Parametrized::Transformation::AsModule

Inherits:
Aws::Templates::Utils::Parametrized::Transformation show all
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

Method Summary

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

#to_proc, #transform_wrapper