Class: Aws::Templates::Help::Rdoc::Parametrized::Constraint

Inherits:
Aws::Templates::Help::Rdoc::Provider show all
Defined in:
lib/aws/templates/help/rdoc/parametrized/constraint.rb

Overview

Abstract constraint provider

Prints constraint-specific description and constraint condition.

Instance Attribute Summary

Attributes inherited from Processor::Handler

#context, #parameters

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

#provideObject



15
16
17
18
19
20
21
# File 'lib/aws/templates/help/rdoc/parametrized/constraint.rb', line 15

def provide
  sub do |s|
    s << super unless add_description(s)
    condition_description = processed_for(context.pre_condition)
    s << condition_description if condition_description
  end
end