Class: Aws::Templates::Help::Rdoc::Parametrized::Transformations::AsList
- Inherits:
-
Aws::Templates::Help::Rdoc::Parametrized::Transformation
- Object
- Processor::Handler
- Provider
- Aws::Templates::Help::Rdoc::Provider
- Aws::Templates::Help::Rdoc::Parametrized::Transformation
- Aws::Templates::Help::Rdoc::Parametrized::Transformations::AsList
- Defined in:
- lib/aws/templates/help/rdoc/parametrized/transformations/as_list.rb
Overview
List transformation documentation
Outputs documentation for sub-parameter (element).
Instance Attribute Summary
Attributes inherited from Processor::Handler
Instance Method Summary collapse
Methods included from Texting
#document, #list, #parsed_for, #sub, #text
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
#provide ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/aws/templates/help/rdoc/parametrized/transformations/as_list.rb', line 16 def provide parameter = context.sub_parameter sub do |s| if parameter.nil? s << text('as a list where elements can be anything') else s << text('as a list where elements are:') << processed_for(parameter) end end end |