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

Inherits:
Puppet::Pops::Adaptable::Adapter show all
Defined in:
lib/puppet/pops/adapters.rb

Overview

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

Returns The alternative value associated with an object.

Returns:

  • (Object)

    The alternative value associated with an object



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

def empty_alternative
  @empty_alternative
end