Class: Puppet::Pops::Types::PTypeSetType::TypeSetLoader Private
- Inherits:
-
Loader::BaseLoader
- Object
- Loader::Loader
- Loader::BaseLoader
- Puppet::Pops::Types::PTypeSetType::TypeSetLoader
- Defined in:
- lib/puppet/pops/types/p_type_set_type.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A Loader that makes the types known to the TypeSet visible
Constant Summary
Constants inherited from Loader::Loader
Loader::Loader::LOADABLE_KINDS
Instance Attribute Summary
Attributes inherited from Loader::BaseLoader
Attributes inherited from Loader::Loader
Instance Method Summary collapse
- #find(typed_name) ⇒ Object private
-
#initialize(type_set, parent) ⇒ TypeSetLoader
constructor
private
A new instance of TypeSetLoader.
- #name_authority ⇒ Object private
Methods inherited from Loader::BaseLoader
#add_entry, #get_entry, #load_typed, #loaded_entry, #promote_entry, #remove_entry, #set_entry
Methods inherited from Loader::Loader
#[], #get_entry, #inspect, #load, #load_typed, #loadables, #loaded_entry, #parent, #private_loader, #set_entry, #to_s
Constructor Details
#initialize(type_set, parent) ⇒ TypeSetLoader
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of TypeSetLoader.
17 18 19 20 |
# File 'lib/puppet/pops/types/p_type_set_type.rb', line 17 def initialize(type_set, parent) super(parent, "(TypeSetFirstLoader '#{type_set.name}')") @type_set = type_set end |
Instance Method Details
#find(typed_name) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 29 30 31 32 |
# File 'lib/puppet/pops/types/p_type_set_type.rb', line 26 def find(typed_name) if typed_name.type == :type && typed_name. == @type_set. type = @type_set[typed_name.name] return set_entry(typed_name, type) unless type.nil? end nil end |
#name_authority ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/puppet/pops/types/p_type_set_type.rb', line 22 def @type_set. end |