class Aws::Templates::Render::View
Render
view
The class introduces additional stage called “prepare” where you can put prepared view which will be additionally recursively rendered. Useful for complex views containing values needed additional rendering so you don't need to invoke rendered_for.
Public Instance Methods
prepare()
click to toggle source
Prepare value for rendering
Should be overriden. Should return a value which is to be passed for final rendering.
# File lib/aws/templates/render/view.rb, line 25 def prepare raise NotImplementedError.new('The method should be overriden') end
to_rendered()
click to toggle source
Render
the instance of the artifact
The method renders value returned by prepare
# File lib/aws/templates/render/view.rb, line 17 def to_rendered rendered_for(prepare) end