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

Inherits:
Aws::Templates::Utils::Parametrized::Constraint show all
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

Method Summary

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

#check_wrapper, #to_proc