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.
- #model_loader ⇒ Object private
- #name_authority ⇒ Object private
Methods inherited from Loader::BaseLoader
#add_entry, #discover, #get_entry, #load_typed, #loaded_entry, #promote_entry, #remove_entry, #set_entry
Methods inherited from Loader::Loader
#[], #discover, #get_entry, #inspect, #load, #load_typed, #loadables, #loaded_entry, #parent, #private_loader, #set_entry, #synchronize, #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}')", parent.environment) @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.
30 31 32 33 34 35 36 |
# File 'lib/puppet/pops/types/p_type_set_type.rb', line 30 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 |
#model_loader ⇒ 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 |
# File 'lib/puppet/pops/types/p_type_set_type.rb', line 26 def model_loader @type_set.loader 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 |