Method: Puppet::Parameter::ValueCollection#initialize

Defined in:
lib/vendor/puppet/parameter/value_collection.rb

#initializeValueCollection

Returns a new instance of ValueCollection.



42
43
44
45
46
47
48
49
50
# File 'lib/vendor/puppet/parameter/value_collection.rb', line 42

def initialize
  # We often look values up by name, so a hash makes more sense.
  @values = {}

  # However, we want to retain the ability to match values in order,
  # but we always prefer directly equality (i.e., strings) over regex matches.
  @regexes = []
  @strings = []
end