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


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

def empty_alternative
  @empty_alternative
end