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 15 def initialize(children: [], **args) 16 @children = children 17 super(**args) 18 end
Public Instance Methods
each() { |child| ... }
click to toggle source
# File lib/puppet/parser/ast/branch.rb 11 def each 12 @children.each { |child| yield child } 13 end