Method: Puppet::Parser::AST::Node#initialize
- Defined in:
- lib/puppet/parser/ast/node.rb
#initialize(names, context = {}) ⇒ Node
Returns a new instance of Node.
6 7 8 9 10 11 12 13 14 |
# File 'lib/puppet/parser/ast/node.rb', line 6 def initialize(names, context = {}) raise ArgumentError, _("names should be an array") unless names.is_a? Array if context[:parent] raise Puppet::DevError, _("Node inheritance is removed in Puppet 4.0.0. See http://links.puppet.com/puppet-node-inheritance-deprecation") end @names = names @context = context end |