Method: Puppet::Pops::Types::TypeCalculator#generalize

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

#generalize(o) ⇒ Object

Generalizes value specific types. The generalized type is returned.



247
248
249
# File 'lib/puppet/pops/types/type_calculator.rb', line 247

def generalize(o)
  o.is_a?(PAnyType) ? o.generalize : o
end