Class: Aws::Templates::Utils::Parametrized::Constraint::NotNil
- Inherits:
-
Aws::Templates::Utils::Parametrized::Constraint
- Object
- Aws::Templates::Utils::Parametrized::Constraint
- Aws::Templates::Utils::Parametrized::Constraint::NotNil
- Includes:
- Singleton
- Defined in:
- lib/aws/templates/utils/parametrized/constraints.rb
Overview
Check if passed value is not nil
Example
class Piece
include Aws::Templates::Utils::Parametrized
parameter :param1, :constraint => not_nil
end
i = Piece.new(:param1 => 3)
i.param1 # => 3
i = Piece.new
i.param1 # throws ParameterValueInvalid