method

object_maker

Importance_0
v2_2_9 - Show latest stable - 0 notes - Class: Psych
object_maker(klass, hash) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File ext/psych/lib/psych/deprecated.rb, line 72
  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
Register or log in to add new notes.