Class: Puppet::Pops::Adapters::EmptyAlternativeAdapter
- Inherits:
-
Puppet::Pops::Adaptable::Adapter
- Object
- Puppet::Pops::Adaptable::Adapter
- Puppet::Pops::Adapters::EmptyAlternativeAdapter
- 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
-
#empty_alternative ⇒ Object
The alternative value associated with an object.
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_alternative ⇒ Object
Returns The alternative value associated with an object.
36 37 38 |
# File 'lib/puppet/pops/adapters.rb', line 36 def empty_alternative @empty_alternative end |