Sha256: 27f7f8fa2037915c2b4af7e525e6048cebe5ef1f808a41f8e9b535b55b1eea23

Contents?: true

Size: 551 Bytes

Versions: 90

Compression:

Stored size: 551 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(arghash)
    super(arghash)
    @children ||= []
  end
end

Version data entries

90 entries across 90 versions & 2 rubygems

Version Path
puppet-5.5.22 lib/puppet/parser/ast/branch.rb
puppet-5.5.22-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-5.5.22-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-5.5.22-universal-darwin lib/puppet/parser/ast/branch.rb
puppet-5.5.21 lib/puppet/parser/ast/branch.rb
puppet-5.5.21-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-5.5.21-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-5.5.21-universal-darwin lib/puppet/parser/ast/branch.rb
puppet-5.5.20 lib/puppet/parser/ast/branch.rb
puppet-5.5.20-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-5.5.20-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-5.5.20-universal-darwin lib/puppet/parser/ast/branch.rb
puppet-5.5.19 lib/puppet/parser/ast/branch.rb
puppet-5.5.19-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-5.5.19-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-5.5.19-universal-darwin lib/puppet/parser/ast/branch.rb
puppet-5.5.18 lib/puppet/parser/ast/branch.rb
puppet-5.5.18-x86-mingw32 lib/puppet/parser/ast/branch.rb
puppet-5.5.18-x64-mingw32 lib/puppet/parser/ast/branch.rb
puppet-5.5.18-universal-darwin lib/puppet/parser/ast/branch.rb