Class: Ansible::Ruby::Modules::Assert

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/utilities/logic/assert.rb

Overview

This module asserts that a given expression is true and can be a simpler alternative to the ‘fail’ module in some cases.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#thatArray<String>, String

Returns A string expression of the same form that can be passed to the ‘when’ statement,Alternatively, a list of string expressions.

Returns:

  • (Array<String>, String)

    A string expression of the same form that can be passed to the ‘when’ statement,Alternatively, a list of string expressions



11
# File 'lib/ansible/ruby/modules/generated/core/utilities/logic/assert.rb', line 11

attribute :that