Method: Puppet::Pops::Types::TypeSetReference#initialize

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

#initialize(owner, init_hash) ⇒ TypeSetReference

Returns a new instance of TypeSetReference.



11
12
13
14
15
16
17
# File 'lib/puppet/pops/types/type_set_reference.rb', line 11

def initialize(owner, init_hash)
  @owner = owner
  @name_authority = (init_hash[KEY_NAME_AUTHORITY] || owner.name_authority).freeze
  @name = init_hash[KEY_NAME].freeze
  @version_range = PSemVerRangeType.convert(init_hash[KEY_VERSION_RANGE])
  init_annotatable(init_hash)
end