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

Version Path
puppet-7.34.0 lib/puppet/parser/ast/branch.rb
puppet-7.34.0-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-7.34.0-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-7.34.0-universal-darwin lib/puppet/parser/ast/branch.rb
puppet-7.33.0 lib/puppet/parser/ast/branch.rb
puppet-7.33.0-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-7.33.0-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-7.33.0-universal-darwin lib/puppet/parser/ast/branch.rb
puppet-7.32.1 lib/puppet/parser/ast/branch.rb
puppet-7.32.1-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-7.32.1-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-7.32.1-universal-darwin lib/puppet/parser/ast/branch.rb
puppet-7.31.0 lib/puppet/parser/ast/branch.rb
puppet-7.31.0-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-7.31.0-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-7.31.0-universal-darwin lib/puppet/parser/ast/branch.rb
puppet-7.30.0 lib/puppet/parser/ast/branch.rb
puppet-7.30.0-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-7.30.0-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-7.30.0-universal-darwin lib/puppet/parser/ast/branch.rb