Method: Puppet::Pops::Types::TypeParser.type_map

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

.type_mapObject

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.



162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# File 'lib/puppet/pops/types/type_parser.rb', line 162

def self.type_map
  @type_map ||= {
      'integer'      => TypeFactory.integer,
      'float'        => TypeFactory.float,
      'numeric'      => TypeFactory.numeric,
      'init'         => TypeFactory.init,
      'iterable'     => TypeFactory.iterable,
      'iterator'     => TypeFactory.iterator,
      'string'       => TypeFactory.string,
      'binary'       => TypeFactory.binary,
      'sensitive'    => TypeFactory.sensitive,
      'enum'         => TypeFactory.enum,
      'boolean'      => TypeFactory.boolean,
      'pattern'      => TypeFactory.pattern,
      'regexp'       => TypeFactory.regexp,
      'array'        => TypeFactory.array_of_any,
      'hash'         => TypeFactory.hash_of_any,
      'class'        => TypeFactory.host_class,
      'resource'     => TypeFactory.resource,
      'collection'   => TypeFactory.collection,
      'scalar'       => TypeFactory.scalar,
      'scalardata'   => TypeFactory.scalar_data,
      'catalogentry' => TypeFactory.catalog_entry,
      'undef'        => TypeFactory.undef,
      'notundef'     => TypeFactory.not_undef,
      'default'      => TypeFactory.default,
      'any'          => TypeFactory.any,
      'variant'      => TypeFactory.variant,
      'optional'     => TypeFactory.optional,
      'runtime'      => TypeFactory.runtime,
      'type'         => TypeFactory.type_type,
      'tuple'        => TypeFactory.tuple,
      'struct'       => TypeFactory.struct,
      'object'       => TypeFactory.object,
      'typealias'    => TypeFactory.type_alias,
      'typereference' => TypeFactory.type_reference,
      'typeset'      => TypeFactory.type_set,
       # A generic callable as opposed to one that does not accept arguments
      'callable'     => TypeFactory.all_callables,
      'semver'       => TypeFactory.sem_ver,
      'semverrange'  => TypeFactory.sem_ver_range,
      'timestamp'    => TypeFactory.timestamp,
      'timespan'     => TypeFactory.timespan,
      'uri'          => TypeFactory.uri,
  }.freeze
end