Class: Aws::Templates::Utils::Parametrized::Constraint::Condition::NotNil

Inherits:
Aws::Templates::Utils::Parametrized::Constraint::Condition show all
Defined in:
lib/aws/templates/utils/parametrized/constraint/condition.rb

Overview

Do not evaluate constraint if value is nil

Instance Method Summary collapse

Methods inherited from Aws::Templates::Utils::Parametrized::Constraint::Condition

any, for, not_nil

Instance Method Details

#check(value, _) ⇒ Object



25
26
27
# File 'lib/aws/templates/utils/parametrized/constraint/condition.rb', line 25

def check(value, _)
  !value.nil?
end