Class Ruby

class Object
  private
  def set_instance_variables(binding, *variables)
    variables.each do |var|
      eval("@#{var} = #{var}", binding)
    end
    #instance_variable_set("@#{var}", var)
  end
end
class RGBColor
  def initialize(red=0, green=0, blue=0)
    set_instance_variables(binding, *local_variables)
  end
end
RGBColor.new(10, 200, 300)
# => #