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