Class: Aws::Templates::Help::Rdoc::Parametrized::Constraints::Condition::Equal

Inherits:
Aws::Templates::Help::Rdoc::Parametrized::Constraints::Condition show all
Defined in:
lib/aws/templates/help/rdoc/parametrized/constraints/condition.rb

Overview

Equality condition documentation provider

Outputs text block with value description.

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



21
22
23
24
# File 'lib/aws/templates/help/rdoc/parametrized/constraints/condition.rb', line 21

def provide
  value = context.expected
  text("_when_ value #{value.nil? ? 'is nil' : "== #{value.inspect}"}")
end