I am using IronRuby to parse Yaml files and then use the parsed document in C#. This is working fine for creating an engine (Ruby.CreateEngine()
), and executing the YAML::load(File.open('myFile.yaml'))
.
But, this works well because I can hard-code a string for the file name when I execute a few lines of ruby code.
Now, I want to understand how to pass a stream from .Net in to have the Yaml parser load it. How do I do this with the scripting engine?