Method: Puppet::Pops::Types::TypeParser#interpret_LiteralHash

Defined in:
lib/puppet/pops/types/type_parser.rb

#interpret_LiteralHash(o, context) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



118
119
120
121
122
123
124
# File 'lib/puppet/pops/types/type_parser.rb', line 118

def interpret_LiteralHash(o, context)
  result = {}
  o.entries.each do |entry|
    result[@type_transformer.visit_this_1(self, entry.key, context)] = @type_transformer.visit_this_1(self, entry.value, context)
  end
  result
end