Method: Puppet::Pops::Lookup::ExplainDataProvider#to_hash
- Defined in:
- lib/puppet/pops/lookup/explainer.rb
#to_hash ⇒ 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.
356 357 358 359 360 361 362 363 364 365 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 356 def to_hash hash = super hash[:name] = @provider.name if @provider.respond_to?(:config_path) path = @provider.config_path hash[:configuration_path] = path.to_s unless path.nil? end hash[:module] = @provider.module_name if @provider.is_a?(ModuleDataProvider) hash end |