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.



47
48
49
50
# File 'lib/puppet/pops/serialization/from_data_converter.rb', line 47

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

Instance Method Details

#resolveObject



52
53
54
55
# File 'lib/puppet/pops/serialization/from_data_converter.rb', line 52

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