Class: Puppet::Pops::Resource::Param
- Includes:
- Types::PuppetObject
- Defined in:
- lib/puppet/pops/resource/param.rb
Instance Attribute Summary collapse
- #name ⇒ Object readonly
- #name_var ⇒ Object readonly
- #type ⇒ Object readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type, name, name_var = false) ⇒ Param
constructor
A new instance of Param.
- #to_s ⇒ Object
Methods included from Types::PuppetObject
Constructor Details
#initialize(type, name, name_var = false) ⇒ Param
Returns a new instance of Param.
40 41 42 43 44 |
# File 'lib/puppet/pops/resource/param.rb', line 40 def initialize(type, name, name_var = false) @type = type @name = name @name_var = name_var end |
Instance Attribute Details
#name ⇒ Object (readonly)
36 37 38 |
# File 'lib/puppet/pops/resource/param.rb', line 36 def name @name end |
#name_var ⇒ Object (readonly)
38 39 40 |
# File 'lib/puppet/pops/resource/param.rb', line 38 def name_var @name_var end |
#type ⇒ Object (readonly)
37 38 39 |
# File 'lib/puppet/pops/resource/param.rb', line 37 def type @type end |
Class Method Details
._ptype ⇒ Object
50 51 52 |
# File 'lib/puppet/pops/resource/param.rb', line 50 def self._ptype @ptype end |
.register_ptype(loader, ir) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/puppet/pops/resource/param.rb', line 21 def self.register_ptype(loader, ir) @ptype = Pcore::create_object_type(loader, ir, self, 'Puppet::Resource::Param', nil, { Types::KEY_TYPE => Types::PType::DEFAULT, Types::KEY_NAME => Types::PStringType::NON_EMPTY, 'name_var' => { Types::KEY_TYPE => Types::PBooleanType::DEFAULT, Types::KEY_VALUE => false } }, EMPTY_HASH, [Types::KEY_NAME] ) end |