Class: Puppet::Parser::AST::ResourceInstance
- Inherits:
-
Branch
- Object
- Puppet::Parser::AST
- Branch
- Puppet::Parser::AST::ResourceInstance
- 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
Instance Attribute Summary collapse
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#title ⇒ Object
Returns the value of attribute title.
Attributes inherited from Branch
Attributes inherited from Puppet::Parser::AST
#file, #line, #parent, #pos, #scope
Instance Method Summary collapse
-
#initialize(argshash) ⇒ ResourceInstance
constructor
A new instance of ResourceInstance.
Methods inherited from Branch
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
#parameters ⇒ Object
Returns the value of attribute parameters.
7 8 9 |
# File 'lib/puppet/parser/ast/resource_instance.rb', line 7 def parameters @parameters end |
#title ⇒ Object
Returns the value of attribute title.
7 8 9 |
# File 'lib/puppet/parser/ast/resource_instance.rb', line 7 def title @title end |