Sha256: 27f7f8fa2037915c2b4af7e525e6048cebe5ef1f808a41f8e9b535b55b1eea23
Contents?: true
Size: 551 Bytes
Versions: 90
Compression:
Stored size: 551 Bytes
Contents
# The parent class of all AST objects that contain other AST objects. # Everything but the really simple objects descend from this. It is # important to note that Branch objects contain other AST objects only -- # if you want to contain values, use a descendant of the AST::Leaf class. # # @api private class Puppet::Parser::AST::Branch < Puppet::Parser::AST include Enumerable attr_accessor :pin, :children def each @children.each { |child| yield child } end def initialize(arghash) super(arghash) @children ||= [] end end
Version data entries
90 entries across 90 versions & 2 rubygems