Class: Puppet::Pops::Binder::Producers::LookupKeyProducer
- Inherits:
-
LookupProducer
- Object
- Producer
- AbstractArgumentedProducer
- LookupProducer
- Puppet::Pops::Binder::Producers::LookupKeyProducer
- Defined in:
- lib/puppet/pops/binder/producers.rb
Instance Attribute Summary collapse
- #key ⇒ Object readonly
Attributes inherited from LookupProducer
Attributes inherited from AbstractArgumentedProducer
Attributes inherited from Producer
Instance Method Summary collapse
-
#initialize(injector, binder, scope, options) ⇒ LookupKeyProducer
constructor
A new instance of LookupKeyProducer.
Methods inherited from Producer
Constructor Details
#initialize(injector, binder, scope, options) ⇒ LookupKeyProducer
Returns a new instance of LookupKeyProducer.
360 361 362 363 364 |
# File 'lib/puppet/pops/binder/producers.rb', line 360 def initialize(injector, binder, scope, ) super @key = [:key] raise ArgumentError, "Option 'key' must be given in a LookupKeyProducer." if key.nil? end |
Instance Attribute Details
#key ⇒ Object (readonly)
349 350 351 |
# File 'lib/puppet/pops/binder/producers.rb', line 349 def key @key end |