Method: Puppet::Pops::Types::TypeMismatchDescriber#optional
- Defined in:
- lib/puppet/pops/types/type_mismatch_describer.rb
#optional(index, required_count) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1099 1100 1101 1102 |
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 1099 def optional(index, required_count) count = index + 1 count > required_count end |