Forum: IronRuby Modifying Global String

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
1031e598059faddb9a9ae6938158cce9?d=identicon&s=25 Chris D. (chris_d94)
on 2011-06-04 17:47
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 topic is locked and can not be replied to.