method

object_maker

ruby latest stable - Class: Psych

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_4_6) is shown here.

object_maker(klass, hash)
public

No documentation available.

# File ext/psych/lib/psych/deprecated.rb, line 73
  def self.object_maker klass, hash
    warn "#{caller[0]}: object_maker is deprecated" if $VERBOSE
    klass.allocate.tap do |obj|
      hash.each { |k,v| obj.instance_variable_set(:"@#{k}", v) }
    end
  end