class Puppet::Pops::Binder::Producers::AbstractValueProducer

Abstract Producer holding a value @abstract @api public

Attributes

value[R]

@api public

Public Class Methods

new(injector, binding, scope, options) click to toggle source

@param injector [Puppet::Pops::Binder::Injector] The injector where the lookup originates @param binding [Puppet::Pops::Binder::Bindings::Binding, nil] The binding using this producer @param scope [Puppet::Parser::Scope] The scope to use for evaluation @option options [Puppet::Pops::Model::LambdaExpression] :transformer (nil) a transformer of produced value @option options [Puppet::Pops::Model::LambdaExpression, nil] :value (nil) the value to produce @api public

# File lib/puppet/pops/binder/producers.rb, line 133
def initialize(injector, binding, scope, options)
   super
   # nil is ok here, as an abstract value producer may be used to signal "not found"
   @value = options[:value]
 end