Class: Puppet::Pops::Adapters::EmptyAlternativeAdapter Private

Inherits:
Puppet::Pops::Adaptable::Adapter show all
Defined in:
lib/puppet/pops/adapters.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.

An empty alternative adapter is used when there is the need to attach a value to be used if the original is empty. This is used when a lazy evaluation takes place, and the decision how to handle an empty case must be delayed.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Puppet::Pops::Adaptable::Adapter

adapt, adapt_new, associate_adapter, clear, create_adapter, get, instance_var_name, self_attr_name, type_name

Instance Attribute Details

#empty_alternativeObject

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 The alternative value associated with an object.

Returns:

  • (Object)

    The alternative value associated with an object


35
36
37
# File 'lib/puppet/pops/adapters.rb', line 35

def empty_alternative
  @empty_alternative
end