Method: Puppet::Util::PsychSupport#init_with
- Defined in:
- lib/puppet/util/psych_support.rb
#init_with(psych_coder) ⇒ Object
This method is called from the Psych Yaml deserializer when it encounters a tag in the form !ruby/object:<class name>.
13 14 15 16 17 18 |
# File 'lib/puppet/util/psych_support.rb', line 13 def init_with(psych_coder) # The PsychCoder has a hashmap of instance variable name (sans the @ symbol) to values # to set, and can thus directly be fed to initialize_from_hash. # initialize_from_hash(psych_coder.map) end |