Class: Puppet::Pops::Adapters::EmptyAlternativeAdapter Private
- Inherits:
-
Puppet::Pops::Adaptable::Adapter
- Object
- Puppet::Pops::Adaptable::Adapter
- Puppet::Pops::Adapters::EmptyAlternativeAdapter
- 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
-
#empty_alternative ⇒ Object
private
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
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.
36 37 38 |
# File 'lib/puppet/pops/adapters.rb', line 36 def empty_alternative @empty_alternative end |