Method: Puppet::Pops::Types::TypeFactory.init
- Defined in:
- lib/puppet/pops/types/type_factory.rb
.init(*args) ⇒ Object
Produces the Init type
72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/puppet/pops/types/type_factory.rb', line 72 def self.init(*args) case args.size when 0 PInitType::DEFAULT when 1 type = args[0] type.nil? ? PInitType::DEFAULT : PInitType.new(type, EMPTY_ARRAY) else type = args.shift PInitType.new(type, args) end end |