Method: Puppet::Pops::Types::TypeFactory.runtime

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

.runtime(runtime = nil, runtime_type_name = nil) ⇒ Object

Generic creator of a RuntimeType - allows creating the type with nil or String runtime_type_name. Also see ruby_type(o) and ruby(o).



602
603
604
605
# File 'lib/puppet/pops/types/type_factory.rb', line 602

def self.runtime(runtime=nil, runtime_type_name = nil)
  runtime = runtime.to_sym if runtime.is_a?(String)
  PRuntimeType.new(runtime, runtime_type_name)
end