Class: Puppet::Parser::AST::ResourceInstance

Inherits:
Branch show all
Defined in:
lib/puppet/parser/ast/resource_instance.rb

Overview

A simple container for a parameter for an object. Consists of a title and a set of parameters.

Constant Summary

Constants inherited from Puppet::Parser::AST

AST

Instance Attribute Summary collapse

Attributes inherited from Branch

#children, #pin

Attributes inherited from Puppet::Parser::AST

#file, #line, #parent, #pos, #scope

Instance Method Summary collapse

Methods inherited from Branch

#each

Methods inherited from Puppet::Parser::AST

#evaluate, #inspect, #safeevaluate

Methods included from Util::Errors

#adderrorcontext, #devfail, #error_context, error_location, error_location_with_space, error_location_with_unknowns, #exceptwrap, #fail

Constructor Details

#initialize(argshash) ⇒ ResourceInstance

Returns a new instance of ResourceInstance.



9
10
11
12
# File 'lib/puppet/parser/ast/resource_instance.rb', line 9

def initialize(argshash)
  Puppet.warn_once('deprecations', 'AST::ResourceInstance', _('Use of Puppet::Parser::AST::ResourceInstance is deprecated'))
  super(argshash)
end

Instance Attribute Details

#parametersObject

Returns the value of attribute parameters.



7
8
9
# File 'lib/puppet/parser/ast/resource_instance.rb', line 7

def parameters
  @parameters
end

#titleObject

Returns the value of attribute title.



7
8
9
# File 'lib/puppet/parser/ast/resource_instance.rb', line 7

def title
  @title
end