Class: Puppet::Pops::Binder::Producers::AbstractArgumentedProducer Abstract

Inherits:
Producer
  • Object
show all
Defined in:
lib/puppet/pops/binder/producers.rb

Overview

This class is abstract.

This abstract producer class remembers the injector and binding.

Instance Attribute Summary collapse

Attributes inherited from Producer

#transformer

Instance Method Summary collapse

Methods inherited from Producer

#produce, #producer

Constructor Details

#initialize(injector, binding, scope, options) ⇒ AbstractArgumentedProducer

Returns a new instance of AbstractArgumentedProducer.

Parameters:

  • injector (Injector)

    The injector where the lookup originates

  • binding (Bindings::Binding, nil)

    The binding using this producer

  • scope (Puppet::Parser::Scope)

    The scope to use for evaluation

  • options (Hash)

    a customizable set of options

Options Hash (options):



194
195
196
197
198
# File 'lib/puppet/pops/binder/producers.rb', line 194

def initialize(injector, binding, scope, options)
  super
  @injector = injector
  @binding = binding
end

Instance Attribute Details

#bindingObject (readonly)



186
187
188
# File 'lib/puppet/pops/binder/producers.rb', line 186

def binding
  @binding
end

#injectorObject (readonly)



183
184
185
# File 'lib/puppet/pops/binder/producers.rb', line 183

def injector
  @injector
end