Method: Puppet::Pops::Types::PNumericType#to

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

#toFloat, Integer

Returns the upper bound of the numeric range or nil if no upper bound is set.

Returns:

  • (Float, Integer)


917
918
919
# File 'lib/puppet/pops/types/types.rb', line 917

def to
  @to == Float::INFINITY ? nil : @to
end