Sha256: 8599ea0d3ee778b823ed2dee7526df2094dbad65af3f3f4e2b310da480c68bc7
Contents?: true
Size: 567 Bytes
Versions: 367
Compression:
Stored size: 567 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(children: [], **args) @children = children super(**args) end end
Version data entries
367 entries across 367 versions & 2 rubygems