Class: Puppet::Pops::Binder::Producers::LookupProducer

Inherits:
AbstractArgumentedProducer show all
Defined in:
lib/puppet/pops/binder/producers.rb

Direct Known Subclasses

LookupKeyProducer

Instance Attribute Summary collapse

Attributes inherited from AbstractArgumentedProducer

#binding, #injector

Attributes inherited from Producer

#transformer

Instance Method Summary collapse

Methods inherited from Producer

#produce, #producer

Constructor Details

#initialize(injector, binder, scope, options) ⇒ LookupProducer

Returns a new instance of LookupProducer.

Options Hash (options):

Raises:

  • (ArgumentError)


327
328
329
330
331
332
# File 'lib/puppet/pops/binder/producers.rb', line 327

def initialize(injector, binder, scope, options)
  super
  @type = options[:type]
  @name = options[:name] || ''
  raise ArgumentError, "Option 'type' must be given in a LookupProducer." unless @type
end

Instance Attribute Details

#nameObject (readonly)



317
318
319
# File 'lib/puppet/pops/binder/producers.rb', line 317

def name
  @name
end

#typeObject (readonly)



314
315
316
# File 'lib/puppet/pops/binder/producers.rb', line 314

def type
  @type
end