# File lib/puppet/parser/ast/branch.rb, line 22 22: def initialize(arghash) 23: super(arghash) 24: 25: # Create the hash, if it was not set at initialization time. 26: @children ||= [] 27: 28: # Verify that we only got valid AST nodes. 29: @children.each { |child| 30: unless child.is_a?(AST) 31: raise Puppet::DevError, 32: "child #{child} is a #{child.class} instead of ast" 33: end 34: } 35: end