Class: Puppet::Pops::Binder::Producers::LookupProducer
- Inherits:
-
AbstractArgumentedProducer
- Object
- Producer
- AbstractArgumentedProducer
- Puppet::Pops::Binder::Producers::LookupProducer
- Defined in:
- lib/puppet/pops/binder/producers.rb
Direct Known Subclasses
Instance Attribute Summary collapse
- #name ⇒ Object readonly
- #type ⇒ Object readonly
Attributes inherited from AbstractArgumentedProducer
Attributes inherited from Producer
Instance Method Summary collapse
-
#initialize(injector, binder, scope, options) ⇒ LookupProducer
constructor
A new instance of LookupProducer.
Methods inherited from Producer
Constructor Details
#initialize(injector, binder, scope, options) ⇒ LookupProducer
Returns a new instance of LookupProducer.
327 328 329 330 331 332 |
# File 'lib/puppet/pops/binder/producers.rb', line 327 def initialize(injector, binder, scope, ) super @type = [:type] @name = [:name] || '' raise ArgumentError, "Option 'type' must be given in a LookupProducer." unless @type end |