Class: Aws::Templates::Render::Utils::BaseTypeViews::ToArray

Inherits:
BasicView show all
Defined in:
lib/aws/templates/render/utils/base_type_views.rb

Overview

Convert to array

Converts value to array and iteratively renders every element in it.

Instance Attribute Summary

Attributes inherited from Processor::Handler

#context, #parameters

Instance Method Summary collapse

Methods inherited from Processor::Handler

for_entity, #handler_for, #in_context, #initialize, #processed_for, processor, #processor, register_in

Constructor Details

This class inherits a constructor from Aws::Templates::Processor::Handler

Instance Method Details

#to_renderedObject



37
38
39
40
41
# File 'lib/aws/templates/render/utils/base_type_views.rb', line 37

def to_rendered
  instance
    .to_a
    .map { |element| processed_for(element) }
end