How can I set a delegate on a ScriptScope under IronRuby? I tried the above code but I got an ArgumentException when calling the function.
scope.SetVariable("import", new Action<string>(DSLImport));
import "Data"
Also, how can I use the above code sending the block as a callback to C# code?
import "Data" do |f|
f.foo = false
end