Method: Puppet::Type.initvars
- Defined in:
- lib/puppet/type.rb
.initvars ⇒ void
TODO:
Does the explanation make sense?
This method returns an undefined value.
Initializes all of the variables that must be initialized for each subclass.
2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 |
# File 'lib/puppet/type.rb', line 2200 def self.initvars # all of the instances of this class @objects = Hash.new @aliases = Hash.new @defaults = {} @parameters ||= [] @validproperties = {} @properties = [] @parameters = [] @paramhash = {} @paramdoc = Hash.new { |hash, key| key = key.intern if key.is_a?(String) if hash.include?(key) hash[key] else "Param Documentation for #{key} not found" end } # rubocop:disable Naming/MemoizedInstanceVariableName @doc ||= "" # rubocop:enable Naming/MemoizedInstanceVariableName end |