module Puppet::Pops::Types::PCollectionType::ClassModule

Public Instance Methods

==(o) click to toggle source
# File lib/puppet/pops/types/types.rb, line 214
def ==(o)
  self.class == o.class && element_type == o.element_type && size_type == o.size_type
end
hash() click to toggle source
# File lib/puppet/pops/types/types.rb, line 210
def hash
  [self.class, element_type, size_type].hash
end
size_range() click to toggle source

Returns an array with from (min) size to (max) size

# File lib/puppet/pops/types/types.rb, line 203
def size_range
  return [0, INFINITY] if size_type.nil?
  f = size_type.from || 0
  t = size_type.to || INFINITY
  [f, t]
end