Hi,

how to create variable in the method that accepts string as name of the variable and the object? 

Something like this:

class InterpreterCallback 
    def set_object(name, value)
#do something here
    end
end

$callback = InterpreterCallback.new()
$callback.set_object("var", 3)

puts var

>>> 3