Class: Puppet::Pops::Lookup::DataHashFunctionProvider Private
- Inherits:
-
FunctionProvider
- Object
- FunctionProvider
- Puppet::Pops::Lookup::DataHashFunctionProvider
- Includes:
- Interpolation, SubLookup
- Defined in:
- lib/puppet/pops/lookup/data_hash_function_provider.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.
Direct Known Subclasses
Constant Summary collapse
- TAG =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'data_hash'
Constants included from SubLookup
Instance Attribute Summary
Attributes inherited from FunctionProvider
#function_name, #locations, #parent_data_provider
Class Method Summary collapse
- .trusted_return_type ⇒ Object private
Instance Method Summary collapse
-
#unchecked_key_lookup(key, lookup_invocation, merge) ⇒ Object
private
Performs a lookup with the assumption that a recursive check has been made.
Methods included from Interpolation
Methods included from SubLookup
Methods inherited from FunctionProvider
#create_function_context, #full_name, #function_context, #initialize, #module_name, #name, #options, #to_s, #value_is_validated?
Methods included from DataProvider
#key_lookup, #key_lookup_in_default, key_type, #lookup, #module_name, #name, register_types, #validate_data_hash, #validate_data_value, #value_is_validated?, value_type
Constructor Details
This class inherits a constructor from Puppet::Pops::Lookup::FunctionProvider
Class Method Details
.trusted_return_type ⇒ 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.
15 16 17 |
# File 'lib/puppet/pops/lookup/data_hash_function_provider.rb', line 15 def self.trusted_return_type @trusted_return_type ||= Types::PHashType.new(DataProvider.key_type, DataProvider.value_type) end |
Instance Method Details
#unchecked_key_lookup(key, lookup_invocation, merge) ⇒ 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.
Performs a lookup with the assumption that a recursive check has been made.
26 27 28 29 30 31 32 33 |
# File 'lib/puppet/pops/lookup/data_hash_function_provider.rb', line 26 def unchecked_key_lookup(key, lookup_invocation, merge) root_key = key.root_key lookup_invocation.with(:data_provider, self) do MergeStrategy.strategy(merge).lookup(locations, lookup_invocation) do |location| invoke_with_location(lookup_invocation, location, root_key) end end end |