Class: Puppet::Pops::Serialization::ObjectArrayBuilder

Inherits:
Builder show all
Defined in:
lib/puppet/pops/serialization/from_data_converter.rb

Instance Method Summary collapse

Methods inherited from Builder

#[], #[]=

Constructor Details

#initialize(instance) ⇒ ObjectArrayBuilder

Returns a new instance of ObjectArrayBuilder


44
45
46
47
# File 'lib/puppet/pops/serialization/from_data_converter.rb', line 44

def initialize(instance)
  super({})
  @instance = instance
end

Instance Method Details

#resolveObject


49
50
51
52
# File 'lib/puppet/pops/serialization/from_data_converter.rb', line 49

def resolve
  @instance.send(:initialize, *super.values)
  @instance
end