class Puppet::Parser::AST::Branch
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
Attributes
children[RW]
pin[RW]
Public Class Methods
new(children: [], **args)
click to toggle source
Calls superclass method
Puppet::Parser::AST::new
# File lib/puppet/parser/ast/branch.rb 16 def initialize(children: [], **args) 17 @children = children 18 super(**args) 19 end
Public Instance Methods
each() { |child| ... }
click to toggle source
# File lib/puppet/parser/ast/branch.rb 12 def each 13 @children.each { |child| yield child } 14 end