Sha256: 9398e5a528aae6ae646298ab63e008fc1a24fa54b376f48a07a9a51e40719c01

Contents?: true

Size: 598 Bytes

Versions: 32

Compression:

Stored size: 598 Bytes

Contents

# frozen_string_literal: true

# 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

32 entries across 32 versions & 1 rubygems

Version Path
puppet-8.10.0 lib/puppet/parser/ast/branch.rb
puppet-8.10.0-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-8.10.0-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-8.10.0-universal-darwin lib/puppet/parser/ast/branch.rb
puppet-8.9.0 lib/puppet/parser/ast/branch.rb
puppet-8.9.0-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-8.9.0-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-8.9.0-universal-darwin lib/puppet/parser/ast/branch.rb
puppet-8.8.1 lib/puppet/parser/ast/branch.rb
puppet-8.8.1-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-8.8.1-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-8.8.1-universal-darwin lib/puppet/parser/ast/branch.rb
puppet-8.7.0 lib/puppet/parser/ast/branch.rb
puppet-8.7.0-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-8.7.0-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-8.7.0-universal-darwin lib/puppet/parser/ast/branch.rb
puppet-8.6.0 lib/puppet/parser/ast/branch.rb
puppet-8.6.0-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-8.6.0-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-8.6.0-universal-darwin lib/puppet/parser/ast/branch.rb