Method: Puppet::Pops::Types::TypeMismatchDescriber#max

Defined in:
lib/puppet/pops/types/type_mismatch_describer.rb

#max(a, b) ⇒ 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.

Why oh why Ruby do you not have a standard Math.max ?



1094
1095
1096
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 1094

def max(a, b)
  a >= b ? a : b
end