Class: Puppet::Pops::Evaluator::DeferredValue

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/pops/evaluator/deferred_resolver.rb

Instance Method Summary collapse

Constructor Details

#initialize(proc) ⇒ DeferredValue

Returns a new instance of DeferredValue.


7
8
9
# File 'lib/puppet/pops/evaluator/deferred_resolver.rb', line 7

def initialize(proc)
  @proc = proc
end

Instance Method Details

#resolveObject


11
12
13
# File 'lib/puppet/pops/evaluator/deferred_resolver.rb', line 11

def resolve
  @proc.call
end