Modifying Global String

If i set a global in the engine and modify it like this in c#

scriptEngine.Runtime.Globals.SetVariable(“Name”, ‘none’);

And then in ruby do:

Name = ‘A new Name’

And then try to get the global back, it is ‘none’ and not ‘A new Name’.
How can modify the global variable and get it back?

I tried using scope, but then i kept getting an exception about the
global being undefined, so i too questions really, how do you get
variables out of scopr in ruby script?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs