Class: Puppet::Pops::Lookup::V4DataHashFunctionProvider Private

Inherits:
DataHashFunctionProvider show all
Defined in:
lib/puppet/pops/lookup/data_hash_function_provider.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.

TODO: API 5.0, remove this class

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.

'v4_data_hash'

Constants included from SubLookup

SubLookup::SPECIAL

Instance Attribute Summary

Attributes inherited from FunctionProvider

#function_name, #locations, #parent_data_provider

Instance Method Summary collapse

Methods inherited from DataHashFunctionProvider

trusted_return_type, #unchecked_key_lookup

Methods included from Interpolation

#interpolate

Methods included from SubLookup

#split_key, #sub_lookup

Methods inherited from FunctionProvider

#create_function_context, #function_context, #initialize, #module_name, #options, #to_s, trusted_return_type, #value_is_validated?

Methods included from DataProvider

#key_lookup, #key_lookup_in_default, key_type, #lookup, #module_name, register_types, #unchecked_key_lookup, #validate_data_hash, #validate_data_value, #value_is_validated?, value_type

Constructor Details

This class inherits a constructor from Puppet::Pops::Lookup::FunctionProvider

Instance Method Details

#call_data_hash_function(ctx, lookup_invocation, location) ⇒ 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.



123
124
125
# File 'lib/puppet/pops/lookup/data_hash_function_provider.rb', line 123

def call_data_hash_function(ctx, lookup_invocation, location)
  ctx.function.call(lookup_invocation.scope)
end

#full_nameObject

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.



119
120
121
# File 'lib/puppet/pops/lookup/data_hash_function_provider.rb', line 119

def full_name
  "deprecated API function '#{function_name}'"
end

#nameObject

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.



115
116
117
# File 'lib/puppet/pops/lookup/data_hash_function_provider.rb', line 115

def name
  "Deprecated API function \"#{function_name}\""
end