Class: Puppet::Pops::Adapters::LoaderAdapter::PathsAndNameCacheAdapter Private
- Inherits:
-
Puppet::Pops::Adaptable::Adapter
- Object
- Puppet::Pops::Adaptable::Adapter
- Puppet::Pops::Adapters::LoaderAdapter::PathsAndNameCacheAdapter
- Defined in:
- lib/puppet/pops/adapters.rb
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.
Instance Attribute Summary collapse
- #cache ⇒ Object private
- #paths ⇒ Object private
Class Method Summary collapse
- .create_adapter(env) ⇒ Object private
Methods inherited from Puppet::Pops::Adaptable::Adapter
adapt, adapt_new, associate_adapter, clear, get, instance_var_name, self_attr_name, type_name
Instance Attribute Details
#cache ⇒ 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.
102 103 104 |
# File 'lib/puppet/pops/adapters.rb', line 102 def cache @cache end |
#paths ⇒ 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.
102 103 104 |
# File 'lib/puppet/pops/adapters.rb', line 102 def paths @paths end |
Class Method Details
.create_adapter(env) ⇒ 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.
104 105 106 107 108 109 |
# File 'lib/puppet/pops/adapters.rb', line 104 def self.create_adapter(env) adapter = super(env) adapter.paths = env.modulepath.map { |p| Pathname.new(p) } adapter.cache = {} adapter end |